OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/bytecode-graph-builder.h" | 5 #include "src/compiler/bytecode-graph-builder.h" |
6 | 6 |
7 #include "src/compiler/linkage.h" | 7 #include "src/compiler/linkage.h" |
8 #include "src/compiler/operator-properties.h" | 8 #include "src/compiler/operator-properties.h" |
9 #include "src/interpreter/bytecode-array-iterator.h" | 9 #include "src/interpreter/bytecode-array-iterator.h" |
10 | 10 |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 BuildBinaryOp(javascript()->Divide(language_mode()), iterator); | 319 BuildBinaryOp(javascript()->Divide(language_mode()), iterator); |
320 } | 320 } |
321 | 321 |
322 | 322 |
323 void BytecodeGraphBuilder::VisitMod( | 323 void BytecodeGraphBuilder::VisitMod( |
324 const interpreter::BytecodeArrayIterator& iterator) { | 324 const interpreter::BytecodeArrayIterator& iterator) { |
325 BuildBinaryOp(javascript()->Modulus(language_mode()), iterator); | 325 BuildBinaryOp(javascript()->Modulus(language_mode()), iterator); |
326 } | 326 } |
327 | 327 |
328 | 328 |
| 329 void BytecodeGraphBuilder::VisitTestEqual( |
| 330 const interpreter::BytecodeArrayIterator& iterator) { |
| 331 UNIMPLEMENTED(); |
| 332 } |
| 333 |
| 334 |
| 335 void BytecodeGraphBuilder::VisitTestNotEqual( |
| 336 const interpreter::BytecodeArrayIterator& iterator) { |
| 337 UNIMPLEMENTED(); |
| 338 } |
| 339 |
| 340 |
| 341 void BytecodeGraphBuilder::VisitTestEqualStrict( |
| 342 const interpreter::BytecodeArrayIterator& iterator) { |
| 343 UNIMPLEMENTED(); |
| 344 } |
| 345 |
| 346 |
| 347 void BytecodeGraphBuilder::VisitTestNotEqualStrict( |
| 348 const interpreter::BytecodeArrayIterator& iterator) { |
| 349 UNIMPLEMENTED(); |
| 350 } |
| 351 |
| 352 |
| 353 void BytecodeGraphBuilder::VisitTestLessThan( |
| 354 const interpreter::BytecodeArrayIterator& iterator) { |
| 355 UNIMPLEMENTED(); |
| 356 } |
| 357 |
| 358 |
| 359 void BytecodeGraphBuilder::VisitTestGreaterThan( |
| 360 const interpreter::BytecodeArrayIterator& iterator) { |
| 361 UNIMPLEMENTED(); |
| 362 } |
| 363 |
| 364 |
| 365 void BytecodeGraphBuilder::VisitTestLessThanEqual( |
| 366 const interpreter::BytecodeArrayIterator& iterator) { |
| 367 UNIMPLEMENTED(); |
| 368 } |
| 369 |
| 370 |
| 371 void BytecodeGraphBuilder::VisitTestGreaterThanEqual( |
| 372 const interpreter::BytecodeArrayIterator& iterator) { |
| 373 UNIMPLEMENTED(); |
| 374 } |
| 375 |
| 376 |
| 377 void BytecodeGraphBuilder::VisitTestIn( |
| 378 const interpreter::BytecodeArrayIterator& iterator) { |
| 379 UNIMPLEMENTED(); |
| 380 } |
| 381 |
| 382 |
| 383 void BytecodeGraphBuilder::VisitTestInstanceOf( |
| 384 const interpreter::BytecodeArrayIterator& iterator) { |
| 385 UNIMPLEMENTED(); |
| 386 } |
| 387 |
| 388 |
| 389 void BytecodeGraphBuilder::VisitJumpSmi8( |
| 390 const interpreter::BytecodeArrayIterator& iterator) { |
| 391 UNIMPLEMENTED(); |
| 392 } |
| 393 |
| 394 |
| 395 void BytecodeGraphBuilder::VisitJumpConstant( |
| 396 const interpreter::BytecodeArrayIterator& iterator) { |
| 397 UNIMPLEMENTED(); |
| 398 } |
| 399 |
| 400 |
| 401 void BytecodeGraphBuilder::VisitJumpIfTrueSmi8( |
| 402 const interpreter::BytecodeArrayIterator& iterator) { |
| 403 UNIMPLEMENTED(); |
| 404 } |
| 405 |
| 406 |
| 407 void BytecodeGraphBuilder::VisitJumpIfTrueConstant( |
| 408 const interpreter::BytecodeArrayIterator& iterator) { |
| 409 UNIMPLEMENTED(); |
| 410 } |
| 411 |
| 412 |
| 413 void BytecodeGraphBuilder::VisitJumpIfFalseSmi8( |
| 414 const interpreter::BytecodeArrayIterator& iterator) { |
| 415 UNIMPLEMENTED(); |
| 416 } |
| 417 |
| 418 |
| 419 void BytecodeGraphBuilder::VisitJumpIfFalseConstant( |
| 420 const interpreter::BytecodeArrayIterator& iterator) { |
| 421 UNIMPLEMENTED(); |
| 422 } |
| 423 |
| 424 |
329 void BytecodeGraphBuilder::VisitReturn( | 425 void BytecodeGraphBuilder::VisitReturn( |
330 const interpreter::BytecodeArrayIterator& iterator) { | 426 const interpreter::BytecodeArrayIterator& iterator) { |
331 Node* control = | 427 Node* control = |
332 NewNode(common()->Return(), environment()->LookupAccumulator()); | 428 NewNode(common()->Return(), environment()->LookupAccumulator()); |
333 UpdateControlDependencyToLeaveFunction(control); | 429 UpdateControlDependencyToLeaveFunction(control); |
334 } | 430 } |
335 | 431 |
336 | 432 |
337 Node** BytecodeGraphBuilder::EnsureInputBufferSize(int size) { | 433 Node** BytecodeGraphBuilder::EnsureInputBufferSize(int size) { |
338 if (size > input_buffer_size_) { | 434 if (size > input_buffer_size_) { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 | 526 |
431 void BytecodeGraphBuilder::UpdateControlDependencyToLeaveFunction(Node* exit) { | 527 void BytecodeGraphBuilder::UpdateControlDependencyToLeaveFunction(Node* exit) { |
432 if (environment()->IsMarkedAsUnreachable()) return; | 528 if (environment()->IsMarkedAsUnreachable()) return; |
433 environment()->MarkAsUnreachable(); | 529 environment()->MarkAsUnreachable(); |
434 exit_controls_.push_back(exit); | 530 exit_controls_.push_back(exit); |
435 } | 531 } |
436 | 532 |
437 } // namespace compiler | 533 } // namespace compiler |
438 } // namespace internal | 534 } // namespace internal |
439 } // namespace v8 | 535 } // namespace v8 |
OLD | NEW |