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/linkage.h" | 8 #include "src/compiler/linkage.h" |
| 9 #include "src/compiler/pipeline.h" |
9 | 10 |
10 namespace v8 { | 11 namespace v8 { |
11 namespace internal { | 12 namespace internal { |
12 namespace compiler { | 13 namespace compiler { |
13 | 14 |
14 CodeGenerator::CodeGenerator(InstructionSequence* code) | 15 CodeGenerator::CodeGenerator(InstructionSequence* code) |
15 : code_(code), | 16 : code_(code), |
16 current_block_(NULL), | 17 current_block_(NULL), |
17 current_source_position_(SourcePosition::Invalid()), | 18 current_source_position_(SourcePosition::Invalid()), |
18 masm_(code->zone()->isolate(), NULL, 0), | 19 masm_(code->zone()->isolate(), NULL, 0), |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 translation.BeginJSFrame(descriptor.bailout_id(), Translation::kSelfLiteralId, | 279 translation.BeginJSFrame(descriptor.bailout_id(), Translation::kSelfLiteralId, |
279 0); | 280 0); |
280 int undefined_literal_id = | 281 int undefined_literal_id = |
281 DefineDeoptimizationLiteral(isolate()->factory()->undefined_value()); | 282 DefineDeoptimizationLiteral(isolate()->factory()->undefined_value()); |
282 translation.StoreLiteral(undefined_literal_id); | 283 translation.StoreLiteral(undefined_literal_id); |
283 | 284 |
284 deoptimization_states_[deoptimization_id] = | 285 deoptimization_states_[deoptimization_id] = |
285 new (zone()) DeoptimizationState(translation.index()); | 286 new (zone()) DeoptimizationState(translation.index()); |
286 } | 287 } |
287 | 288 |
| 289 |
| 290 #if !V8_TURBOFAN_TARGET |
| 291 void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
| 292 UNIMPLEMENTED(); |
| 293 } |
| 294 |
| 295 |
| 296 void CodeGenerator::AssembleArchBranch(Instruction* instr, |
| 297 FlagsCondition condition) { |
| 298 UNIMPLEMENTED(); |
| 299 } |
| 300 |
| 301 |
| 302 void CodeGenerator::AssembleArchBoolean(Instruction* instr, |
| 303 FlagsCondition condition) { |
| 304 UNIMPLEMENTED(); |
| 305 } |
| 306 |
| 307 |
| 308 void CodeGenerator::AssemblePrologue() { UNIMPLEMENTED(); } |
| 309 |
| 310 |
| 311 void CodeGenerator::AssembleReturn() { UNIMPLEMENTED(); } |
| 312 |
| 313 |
| 314 void CodeGenerator::AssembleMove(InstructionOperand* source, |
| 315 InstructionOperand* destination) { |
| 316 UNIMPLEMENTED(); |
| 317 } |
| 318 |
| 319 |
| 320 void CodeGenerator::AssembleSwap(InstructionOperand* source, |
| 321 InstructionOperand* destination) { |
| 322 UNIMPLEMENTED(); |
| 323 } |
| 324 |
| 325 |
| 326 void CodeGenerator::AddNopForSmiCodeInlining() { UNIMPLEMENTED(); } |
| 327 |
| 328 |
| 329 #ifdef DEBUG |
| 330 bool CodeGenerator::IsNopForSmiCodeInlining(Handle<Code> code, int start_pc, |
| 331 int end_pc) { |
| 332 UNIMPLEMENTED(); |
| 333 return false; |
| 334 } |
| 335 #endif |
| 336 |
| 337 #endif |
| 338 |
| 339 |
288 } // namespace compiler | 340 } // namespace compiler |
289 } // namespace internal | 341 } // namespace internal |
290 } // namespace v8 | 342 } // namespace v8 |
OLD | NEW |