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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/node-properties-inl.h" | 10 #include "src/compiler/node-properties-inl.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 } | 134 } |
135 case kArchCallJSFunction: { | 135 case kArchCallJSFunction: { |
136 // TODO(jarin) The load of the context should be separated from the call. | 136 // TODO(jarin) The load of the context should be separated from the call. |
137 Register func = i.InputRegister(0); | 137 Register func = i.InputRegister(0); |
138 __ mov(esi, FieldOperand(func, JSFunction::kContextOffset)); | 138 __ mov(esi, FieldOperand(func, JSFunction::kContextOffset)); |
139 __ call(FieldOperand(func, JSFunction::kCodeEntryOffset)); | 139 __ call(FieldOperand(func, JSFunction::kCodeEntryOffset)); |
140 AddSafepointAndDeopt(instr); | 140 AddSafepointAndDeopt(instr); |
141 break; | 141 break; |
142 } | 142 } |
143 case kArchDeoptimize: { | 143 case kArchDeoptimize: { |
144 int deoptimization_id = MiscField::decode(instr->opcode()); | 144 int deoptimization_id = BuildTranslation(instr, 0); |
145 BuildTranslation(instr, 0, deoptimization_id); | |
146 | 145 |
147 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 146 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |
148 isolate(), deoptimization_id, Deoptimizer::LAZY); | 147 isolate(), deoptimization_id, Deoptimizer::LAZY); |
149 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 148 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |
150 break; | 149 break; |
151 } | 150 } |
152 case kArchDrop: { | 151 case kArchDrop: { |
153 int words = MiscField::decode(instr->opcode()); | 152 int words = MiscField::decode(instr->opcode()); |
154 __ add(esp, Immediate(kPointerSize * words)); | 153 __ add(esp, Immediate(kPointerSize * words)); |
155 break; | 154 break; |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 } | 943 } |
945 | 944 |
946 | 945 |
947 void CodeGenerator::AddNopForSmiCodeInlining() { __ nop(); } | 946 void CodeGenerator::AddNopForSmiCodeInlining() { __ nop(); } |
948 | 947 |
949 #undef __ | 948 #undef __ |
950 | 949 |
951 } | 950 } |
952 } | 951 } |
953 } // namespace v8::internal::compiler | 952 } // namespace v8::internal::compiler |
OLD | NEW |