| 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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 | 434 |
| 435 // Platform-specific code for loading variables. | 435 // Platform-specific code for loading variables. |
| 436 void EmitGlobalVariableLoad(VariableProxy* proxy, TypeofMode typeof_mode); | 436 void EmitGlobalVariableLoad(VariableProxy* proxy, TypeofMode typeof_mode); |
| 437 void EmitVariableLoad(VariableProxy* proxy, | 437 void EmitVariableLoad(VariableProxy* proxy, |
| 438 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); | 438 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
| 439 | 439 |
| 440 void EmitAccessor(ObjectLiteralProperty* property); | 440 void EmitAccessor(ObjectLiteralProperty* property); |
| 441 | 441 |
| 442 // Platform-specific support for allocating a new closure based on | 442 // Platform-specific support for allocating a new closure based on |
| 443 // the given function info. | 443 // the given function info. |
| 444 void EmitNewClosure(Handle<SharedFunctionInfo> info, bool pretenure); | 444 void EmitNewClosure(Handle<SharedFunctionInfo> info, FeedbackVectorSlot slot, |
| 445 bool pretenure); |
| 445 | 446 |
| 446 // Re-usable portions of CallRuntime | 447 // Re-usable portions of CallRuntime |
| 447 void EmitLoadJSRuntimeFunction(CallRuntime* expr); | 448 void EmitLoadJSRuntimeFunction(CallRuntime* expr); |
| 448 void EmitCallJSRuntimeFunction(CallRuntime* expr); | 449 void EmitCallJSRuntimeFunction(CallRuntime* expr); |
| 449 | 450 |
| 450 // Load a value from a named property. | 451 // Load a value from a named property. |
| 451 // The receiver is left on the stack by the IC. | 452 // The receiver is left on the stack by the IC. |
| 452 void EmitNamedPropertyLoad(Property* expr); | 453 void EmitNamedPropertyLoad(Property* expr); |
| 453 | 454 |
| 454 // Load a value from a keyed property. | 455 // Load a value from a keyed property. |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 892 Address start_; | 893 Address start_; |
| 893 Address instruction_start_; | 894 Address instruction_start_; |
| 894 uint32_t length_; | 895 uint32_t length_; |
| 895 }; | 896 }; |
| 896 | 897 |
| 897 | 898 |
| 898 } // namespace internal | 899 } // namespace internal |
| 899 } // namespace v8 | 900 } // namespace v8 |
| 900 | 901 |
| 901 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 902 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
| OLD | NEW |