OLD | NEW |
---|---|
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/arm64/lithium-codegen-arm64.h" | 7 #include "src/arm64/lithium-codegen-arm64.h" |
8 #include "src/arm64/lithium-gap-resolver-arm64.h" | 8 #include "src/arm64/lithium-gap-resolver-arm64.h" |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 5001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5012 __ Debug("LDebugBreak", 0, BREAK); | 5012 __ Debug("LDebugBreak", 0, BREAK); |
5013 } | 5013 } |
5014 | 5014 |
5015 | 5015 |
5016 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 5016 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
5017 DCHECK(ToRegister(instr->context()).is(cp)); | 5017 DCHECK(ToRegister(instr->context()).is(cp)); |
5018 Register scratch1 = x5; | 5018 Register scratch1 = x5; |
5019 Register scratch2 = x6; | 5019 Register scratch2 = x6; |
5020 DCHECK(instr->IsMarkedAsCall()); | 5020 DCHECK(instr->IsMarkedAsCall()); |
5021 | 5021 |
5022 ASM_UNIMPLEMENTED_BREAK("DoDeclareGlobals"); | |
mvstanton
2014/12/02 13:45:20
What is this about?
ulan
2014/12/02 13:56:06
DoDeclareGlobals is actually implemented. The asse
| |
5023 // TODO(all): if Mov could handle object in new space then it could be used | 5022 // TODO(all): if Mov could handle object in new space then it could be used |
5024 // here. | 5023 // here. |
5025 __ LoadHeapObject(scratch1, instr->hydrogen()->pairs()); | 5024 __ LoadHeapObject(scratch1, instr->hydrogen()->pairs()); |
5026 __ Mov(scratch2, Smi::FromInt(instr->hydrogen()->flags())); | 5025 __ Mov(scratch2, Smi::FromInt(instr->hydrogen()->flags())); |
5027 __ Push(cp, scratch1, scratch2); // The context is the first argument. | 5026 __ Push(cp, scratch1, scratch2); // The context is the first argument. |
5028 CallRuntime(Runtime::kDeclareGlobals, 3, instr); | 5027 CallRuntime(Runtime::kDeclareGlobals, 3, instr); |
5029 } | 5028 } |
5030 | 5029 |
5031 | 5030 |
5032 void LCodeGen::DoDeferredStackCheck(LStackCheck* instr) { | 5031 void LCodeGen::DoDeferredStackCheck(LStackCheck* instr) { |
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6043 Handle<ScopeInfo> scope_info = instr->scope_info(); | 6042 Handle<ScopeInfo> scope_info = instr->scope_info(); |
6044 __ Push(scope_info); | 6043 __ Push(scope_info); |
6045 __ Push(ToRegister(instr->function())); | 6044 __ Push(ToRegister(instr->function())); |
6046 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6045 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6047 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6046 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6048 } | 6047 } |
6049 | 6048 |
6050 | 6049 |
6051 | 6050 |
6052 } } // namespace v8::internal | 6051 } } // namespace v8::internal |
OLD | NEW |