OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_FULL_CODEGEN_FULL_CODEGEN_H_ | 5 #ifndef V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
10 #include "src/ast/ast.h" | 10 #include "src/ast/ast.h" |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 | 436 |
437 // Platform-specific code for loading variables. | 437 // Platform-specific code for loading variables. |
438 void EmitGlobalVariableLoad(VariableProxy* proxy, TypeofMode typeof_mode); | 438 void EmitGlobalVariableLoad(VariableProxy* proxy, TypeofMode typeof_mode); |
439 void EmitVariableLoad(VariableProxy* proxy, | 439 void EmitVariableLoad(VariableProxy* proxy, |
440 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); | 440 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
441 | 441 |
442 void EmitAccessor(ObjectLiteralProperty* property); | 442 void EmitAccessor(ObjectLiteralProperty* property); |
443 | 443 |
444 // Platform-specific support for allocating a new closure based on | 444 // Platform-specific support for allocating a new closure based on |
445 // the given function info. | 445 // the given function info. |
446 void EmitNewClosure(Handle<SharedFunctionInfo> info, bool pretenure); | 446 void EmitNewClosure(Handle<SharedFunctionInfo> info, FeedbackVectorSlot slot, |
| 447 bool pretenure); |
447 | 448 |
448 // Re-usable portions of CallRuntime | 449 // Re-usable portions of CallRuntime |
449 void EmitLoadJSRuntimeFunction(CallRuntime* expr); | 450 void EmitLoadJSRuntimeFunction(CallRuntime* expr); |
450 void EmitCallJSRuntimeFunction(CallRuntime* expr); | 451 void EmitCallJSRuntimeFunction(CallRuntime* expr); |
451 | 452 |
452 // Load a value from a named property. | 453 // Load a value from a named property. |
453 // The receiver is left on the stack by the IC. | 454 // The receiver is left on the stack by the IC. |
454 void EmitNamedPropertyLoad(Property* expr); | 455 void EmitNamedPropertyLoad(Property* expr); |
455 | 456 |
456 // Load a value from a keyed property. | 457 // Load a value from a keyed property. |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 Address start_; | 899 Address start_; |
899 Address instruction_start_; | 900 Address instruction_start_; |
900 uint32_t length_; | 901 uint32_t length_; |
901 }; | 902 }; |
902 | 903 |
903 | 904 |
904 } // namespace internal | 905 } // namespace internal |
905 } // namespace v8 | 906 } // namespace v8 |
906 | 907 |
907 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 908 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |