Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: src/compiler/raw-machine-assembler.h

Issue 1300813005: [Interpreter] Add implementations of arithmetic binary op bytecodes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@mstar_v8h
Patch Set: Fix unittest too... Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/interpreter-assembler.cc ('k') | src/compiler/raw-machine-assembler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 } 474 }
475 Node* StoreToPointer(void* address, MachineType rep, Node* node) { 475 Node* StoreToPointer(void* address, MachineType rep, Node* node) {
476 return Store(rep, PointerConstant(address), node); 476 return Store(rep, PointerConstant(address), node);
477 } 477 }
478 Node* StringConstant(const char* string) { 478 Node* StringConstant(const char* string) {
479 return HeapConstant(isolate()->factory()->InternalizeUtf8String(string)); 479 return HeapConstant(isolate()->factory()->InternalizeUtf8String(string));
480 } 480 }
481 481
482 // Call a given call descriptor and the given arguments. 482 // Call a given call descriptor and the given arguments.
483 Node* CallN(CallDescriptor* desc, Node* function, Node** args); 483 Node* CallN(CallDescriptor* desc, Node* function, Node** args);
484 484 // Call a given call descriptor and the given arguments and frame-state.
485 Node* CallNWithFrameState(CallDescriptor* desc, Node* function, Node** args,
486 Node* frame_state);
487 // Tail call the given call descriptor and the given arguments.
488 Node* TailCallN(CallDescriptor* call_descriptor, Node* function, Node** args);
485 // Call through CallFunctionStub with lazy deopt and frame-state. 489 // Call through CallFunctionStub with lazy deopt and frame-state.
486 Node* CallFunctionStub0(Node* function, Node* receiver, Node* context, 490 Node* CallFunctionStub0(Node* function, Node* receiver, Node* context,
487 Node* frame_state, CallFunctionFlags flags); 491 Node* frame_state, CallFunctionFlags flags);
488 // Call to a JS function with zero arguments.
489 Node* CallJS0(Node* function, Node* receiver, Node* context,
490 Node* frame_state);
491 // Call to a runtime function with zero arguments. 492 // Call to a runtime function with zero arguments.
492 Node* CallRuntime1(Runtime::FunctionId function, Node* arg0, Node* context, 493 Node* CallRuntime1(Runtime::FunctionId function, Node* arg0, Node* context,
493 Node* frame_state); 494 Node* frame_state);
494 // Call to a C function with zero arguments. 495 // Call to a C function with zero arguments.
495 Node* CallCFunction0(MachineType return_type, Node* function); 496 Node* CallCFunction0(MachineType return_type, Node* function);
496 // Call to a C function with one parameter. 497 // Call to a C function with one parameter.
497 Node* CallCFunction1(MachineType return_type, MachineType arg0_type, 498 Node* CallCFunction1(MachineType return_type, MachineType arg0_type,
498 Node* function, Node* arg0); 499 Node* function, Node* arg0);
499 // Call to a C function with two arguments. 500 // Call to a C function with two arguments.
500 Node* CallCFunction2(MachineType return_type, MachineType arg0_type, 501 Node* CallCFunction2(MachineType return_type, MachineType arg0_type,
501 MachineType arg1_type, Node* function, Node* arg0, 502 MachineType arg1_type, Node* function, Node* arg0,
502 Node* arg1); 503 Node* arg1);
503 // Call to a C function with eight arguments. 504 // Call to a C function with eight arguments.
504 Node* CallCFunction8(MachineType return_type, MachineType arg0_type, 505 Node* CallCFunction8(MachineType return_type, MachineType arg0_type,
505 MachineType arg1_type, MachineType arg2_type, 506 MachineType arg1_type, MachineType arg2_type,
506 MachineType arg3_type, MachineType arg4_type, 507 MachineType arg3_type, MachineType arg4_type,
507 MachineType arg5_type, MachineType arg6_type, 508 MachineType arg5_type, MachineType arg6_type,
508 MachineType arg7_type, Node* function, Node* arg0, 509 MachineType arg7_type, Node* function, Node* arg0,
509 Node* arg1, Node* arg2, Node* arg3, Node* arg4, 510 Node* arg1, Node* arg2, Node* arg3, Node* arg4,
510 Node* arg5, Node* arg6, Node* arg7); 511 Node* arg5, Node* arg6, Node* arg7);
511 Node* TailCallInterpreterDispatch(const CallDescriptor* call_descriptor,
512 Node* target, Node* arg1, Node* arg2,
513 Node* arg3, Node* arg4, Node* arg5,
514 Node* arg6);
515 512
516 // =========================================================================== 513 // ===========================================================================
517 // The following utility methods deal with control flow, hence might switch 514 // The following utility methods deal with control flow, hence might switch
518 // the current basic block or create new basic blocks for labels. 515 // the current basic block or create new basic blocks for labels.
519 516
520 // Control flow. 517 // Control flow.
521 void Goto(Label* label); 518 void Goto(Label* label);
522 void Branch(Node* condition, Label* true_val, Label* false_val); 519 void Branch(Node* condition, Label* true_val, Label* false_val);
523 void Switch(Node* index, Label* default_label, int32_t* case_values, 520 void Switch(Node* index, Label* default_label, int32_t* case_values,
524 Label** case_labels, size_t case_count); 521 Label** case_labels, size_t case_count);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 BasicBlock* current_block_; 592 BasicBlock* current_block_;
596 593
597 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); 594 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler);
598 }; 595 };
599 596
600 } // namespace compiler 597 } // namespace compiler
601 } // namespace internal 598 } // namespace internal
602 } // namespace v8 599 } // namespace v8
603 600
604 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 601 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/interpreter-assembler.cc ('k') | src/compiler/raw-machine-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698