OLD | NEW |
---|---|
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_FACTORY_H_ | 5 #ifndef V8_FACTORY_H_ |
6 #define V8_FACTORY_H_ | 6 #define V8_FACTORY_H_ |
7 | 7 |
8 #include "isolate.h" | 8 #include "isolate.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
405 Handle<SharedFunctionInfo> function_info, | 405 Handle<SharedFunctionInfo> function_info, |
406 Handle<Context> context, | 406 Handle<Context> context, |
407 PretenureFlag pretenure = TENURED); | 407 PretenureFlag pretenure = TENURED); |
408 | 408 |
409 // Create a serialized scope info. | 409 // Create a serialized scope info. |
410 Handle<ScopeInfo> NewScopeInfo(int length); | 410 Handle<ScopeInfo> NewScopeInfo(int length); |
411 | 411 |
412 // Create an External object for V8's external API. | 412 // Create an External object for V8's external API. |
413 Handle<JSObject> NewExternal(void* value); | 413 Handle<JSObject> NewExternal(void* value); |
414 | 414 |
415 // The pointer to the Code object is stored in self_reference. | |
416 // This allows generated code to reference its own Code object | |
417 // by containing this pointer. | |
Michael Starzinger
2014/04/16 11:10:04
nit: s/this pointer/this handle/
Yang
2014/04/16 11:29:55
Done.
| |
415 Handle<Code> NewCode(const CodeDesc& desc, | 418 Handle<Code> NewCode(const CodeDesc& desc, |
416 Code::Flags flags, | 419 Code::Flags flags, |
417 Handle<Object> self_reference, | 420 Handle<Object> self_reference, |
418 bool immovable = false, | 421 bool immovable = false, |
419 bool crankshafted = false, | 422 bool crankshafted = false, |
420 int prologue_offset = Code::kPrologueOffsetNotSet); | 423 int prologue_offset = Code::kPrologueOffsetNotSet); |
421 | 424 |
422 Handle<Code> CopyCode(Handle<Code> code); | 425 Handle<Code> CopyCode(Handle<Code> code); |
423 | 426 |
424 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); | 427 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
608 | 611 |
609 // Update the map cache in the native context with (keys, map) | 612 // Update the map cache in the native context with (keys, map) |
610 Handle<MapCache> AddToMapCache(Handle<Context> context, | 613 Handle<MapCache> AddToMapCache(Handle<Context> context, |
611 Handle<FixedArray> keys, | 614 Handle<FixedArray> keys, |
612 Handle<Map> map); | 615 Handle<Map> map); |
613 }; | 616 }; |
614 | 617 |
615 } } // namespace v8::internal | 618 } } // namespace v8::internal |
616 | 619 |
617 #endif // V8_FACTORY_H_ | 620 #endif // V8_FACTORY_H_ |
OLD | NEW |