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

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

Issue 792463003: [turbofan] Turn JSToBoolean and JSUnaryNot into pure operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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
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 #include "src/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/compiler/pipeline.h" 6 #include "src/compiler/pipeline.h"
7 #include "src/compiler/raw-machine-assembler.h" 7 #include "src/compiler/raw-machine-assembler.h"
8 #include "src/compiler/scheduler.h" 8 #include "src/compiler/scheduler.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 schedule()->AddReturn(CurrentBlock(), value); 80 schedule()->AddReturn(CurrentBlock(), value);
81 current_block_ = NULL; 81 current_block_ = NULL;
82 } 82 }
83 83
84 84
85 Node* RawMachineAssembler::CallFunctionStub0(Node* function, Node* receiver, 85 Node* RawMachineAssembler::CallFunctionStub0(Node* function, Node* receiver,
86 Node* context, Node* frame_state, 86 Node* context, Node* frame_state,
87 CallFunctionFlags flags) { 87 CallFunctionFlags flags) {
88 Callable callable = CodeFactory::CallFunction(isolate(), 0, flags); 88 Callable callable = CodeFactory::CallFunction(isolate(), 0, flags);
89 CallDescriptor* desc = Linkage::GetStubCallDescriptor( 89 CallDescriptor* desc = Linkage::GetStubCallDescriptor(
90 callable.descriptor(), 1, CallDescriptor::kNeedsFrameState, zone()); 90 callable.descriptor(), 1, CallDescriptor::kNeedsFrameState,
91 Operator::kNoProperties, zone());
91 Node* stub_code = HeapConstant(callable.code()); 92 Node* stub_code = HeapConstant(callable.code());
92 Node* call = graph()->NewNode(common()->Call(desc), stub_code, function, 93 Node* call = graph()->NewNode(common()->Call(desc), stub_code, function,
93 receiver, context, frame_state); 94 receiver, context, frame_state);
94 schedule()->AddNode(CurrentBlock(), call); 95 schedule()->AddNode(CurrentBlock(), call);
95 return call; 96 return call;
96 } 97 }
97 98
98 99
99 Node* RawMachineAssembler::CallJS0(Node* function, Node* receiver, 100 Node* RawMachineAssembler::CallJS0(Node* function, Node* receiver,
100 Node* context, Node* frame_state) { 101 Node* context, Node* frame_state) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 Node* node = graph()->NewNode(op, input_count, inputs, incomplete); 159 Node* node = graph()->NewNode(op, input_count, inputs, incomplete);
159 BasicBlock* block = op->opcode() == IrOpcode::kParameter ? schedule()->start() 160 BasicBlock* block = op->opcode() == IrOpcode::kParameter ? schedule()->start()
160 : CurrentBlock(); 161 : CurrentBlock();
161 schedule()->AddNode(block, node); 162 schedule()->AddNode(block, node);
162 return node; 163 return node;
163 } 164 }
164 165
165 } // namespace compiler 166 } // namespace compiler
166 } // namespace internal 167 } // namespace internal
167 } // namespace v8 168 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698