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

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

Issue 931623002: [turbofan] Optimize certain chains of Branch into a Switch. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addrssed comments. Created 5 years, 10 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/pipeline.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/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/graph-builder.h" 9 #include "src/compiler/graph-builder.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 return NewNode(machine()->Float64RoundTiesAway(), a); 393 return NewNode(machine()->Float64RoundTiesAway(), a);
394 } 394 }
395 395
396 // Parameters. 396 // Parameters.
397 Node* Parameter(size_t index); 397 Node* Parameter(size_t index);
398 398
399 // Control flow. 399 // Control flow.
400 Label* Exit(); 400 Label* Exit();
401 void Goto(Label* label); 401 void Goto(Label* label);
402 void Branch(Node* condition, Label* true_val, Label* false_val); 402 void Branch(Node* condition, Label* true_val, Label* false_val);
403 void Switch(Node* index, Label** succ_labels, size_t succ_count); 403 void Switch(Node* index, Label* default_label, int32_t* case_values,
404 Label** case_labels, size_t case_count);
404 // Call through CallFunctionStub with lazy deopt and frame-state. 405 // Call through CallFunctionStub with lazy deopt and frame-state.
405 Node* CallFunctionStub0(Node* function, Node* receiver, Node* context, 406 Node* CallFunctionStub0(Node* function, Node* receiver, Node* context,
406 Node* frame_state, CallFunctionFlags flags); 407 Node* frame_state, CallFunctionFlags flags);
407 // Call to a JS function with zero parameters. 408 // Call to a JS function with zero parameters.
408 Node* CallJS0(Node* function, Node* receiver, Node* context, 409 Node* CallJS0(Node* function, Node* receiver, Node* context,
409 Node* frame_state); 410 Node* frame_state);
410 // Call to a runtime function with zero parameters. 411 // Call to a runtime function with zero parameters.
411 Node* CallRuntime1(Runtime::FunctionId function, Node* arg0, Node* context, 412 Node* CallRuntime1(Runtime::FunctionId function, Node* arg0, Node* context,
412 Node* frame_state); 413 Node* frame_state);
413 void Return(Node* value); 414 void Return(Node* value);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 BasicBlock* current_block_; 455 BasicBlock* current_block_;
455 456
456 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); 457 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler);
457 }; 458 };
458 459
459 } // namespace compiler 460 } // namespace compiler
460 } // namespace internal 461 } // namespace internal
461 } // namespace v8 462 } // namespace v8
462 463
463 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 464 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/compiler/raw-machine-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698