V8 Project
gc-extension.cc
Go to the documentation of this file.
1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
6 
8 
9 namespace v8 {
10 namespace internal {
11 
12 
14  v8::Isolate* isolate,
17 }
18 
19 
22  args[0]->BooleanValue() ? v8::Isolate::kMinorGarbageCollection
24 }
25 
26 } } // namespace v8::internal
The argument information given to function call callbacks.
Definition: v8.h:2650
Isolate * GetIsolate() const
Definition: v8.h:6342
static Local< FunctionTemplate > New(Isolate *isolate, FunctionCallback callback=0, Handle< Value > data=Handle< Value >(), Handle< Signature > signature=Handle< Signature >(), int length=0)
Creates a function template.
Definition: api.cc:904
An object reference managed by the v8 garbage collector.
Definition: v8.h:198
Isolate represents an isolated instance of the V8 engine.
Definition: v8.h:4356
void RequestGarbageCollectionForTesting(GarbageCollectionType type)
Request garbage collection in this Isolate.
Definition: api.cc:6562
@ kFullGarbageCollection
Definition: v8.h:4477
@ kMinorGarbageCollection
Definition: v8.h:4478
virtual v8::Handle< v8::FunctionTemplate > GetNativeFunctionTemplate(v8::Isolate *isolate, v8::Handle< v8::String > name)
Definition: gc-extension.cc:13
static void GC(const v8::FunctionCallbackInfo< v8::Value > &args)
Definition: gc-extension.cc:20
Debugger support for the V8 JavaScript engine.
Definition: accessors.cc:20