| 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 #if V8_TARGET_ARCH_ARM | 5 #if V8_TARGET_ARCH_ARM |
| 6 | 6 |
| 7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 873 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { | 873 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { |
| 874 // Call the runtime to declare the globals. | 874 // Call the runtime to declare the globals. |
| 875 __ mov(r1, Operand(pairs)); | 875 __ mov(r1, Operand(pairs)); |
| 876 __ mov(r0, Operand(Smi::FromInt(DeclareGlobalsFlags()))); | 876 __ mov(r0, Operand(Smi::FromInt(DeclareGlobalsFlags()))); |
| 877 __ Push(r1, r0); | 877 __ Push(r1, r0); |
| 878 __ CallRuntime(Runtime::kDeclareGlobals); | 878 __ CallRuntime(Runtime::kDeclareGlobals); |
| 879 // Return value is ignored. | 879 // Return value is ignored. |
| 880 } | 880 } |
| 881 | 881 |
| 882 | 882 |
| 883 void FullCodeGenerator::DeclareModules(Handle<FixedArray> descriptions) { | |
| 884 // Call the runtime to declare the modules. | |
| 885 __ Push(descriptions); | |
| 886 __ CallRuntime(Runtime::kDeclareModules); | |
| 887 // Return value is ignored. | |
| 888 } | |
| 889 | |
| 890 | |
| 891 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { | 883 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { |
| 892 Comment cmnt(masm_, "[ SwitchStatement"); | 884 Comment cmnt(masm_, "[ SwitchStatement"); |
| 893 Breakable nested_statement(this, stmt); | 885 Breakable nested_statement(this, stmt); |
| 894 SetStatementPosition(stmt); | 886 SetStatementPosition(stmt); |
| 895 | 887 |
| 896 // Keep the switch value on the stack until a case matches. | 888 // Keep the switch value on the stack until a case matches. |
| 897 VisitForStackValue(stmt->tag()); | 889 VisitForStackValue(stmt->tag()); |
| 898 PrepareForBailoutForId(stmt->EntryId(), BailoutState::NO_REGISTERS); | 890 PrepareForBailoutForId(stmt->EntryId(), BailoutState::NO_REGISTERS); |
| 899 | 891 |
| 900 ZoneList<CaseClause*>* clauses = stmt->cases(); | 892 ZoneList<CaseClause*>* clauses = stmt->cases(); |
| (...skipping 2959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3860 DCHECK(interrupt_address == | 3852 DCHECK(interrupt_address == |
| 3861 isolate->builtins()->OnStackReplacement()->entry()); | 3853 isolate->builtins()->OnStackReplacement()->entry()); |
| 3862 return ON_STACK_REPLACEMENT; | 3854 return ON_STACK_REPLACEMENT; |
| 3863 } | 3855 } |
| 3864 | 3856 |
| 3865 | 3857 |
| 3866 } // namespace internal | 3858 } // namespace internal |
| 3867 } // namespace v8 | 3859 } // namespace v8 |
| 3868 | 3860 |
| 3869 #endif // V8_TARGET_ARCH_ARM | 3861 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |