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

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

Issue 526953004: Lazy deoptimization for comparisons in Turbofan. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/operator-properties-inl.h ('k') | src/compiler/verifier.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 #include "src/compiler/pipeline.h" 5 #include "src/compiler/pipeline.h"
6 #include "src/compiler/raw-machine-assembler.h" 6 #include "src/compiler/raw-machine-assembler.h"
7 #include "src/compiler/scheduler.h" 7 #include "src/compiler/scheduler.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 Node* call = graph()->NewNode(common()->Call(descriptor), function, receiver, 100 Node* call = graph()->NewNode(common()->Call(descriptor), function, receiver,
101 frame_state); 101 frame_state);
102 schedule()->AddNode(CurrentBlock(), call); 102 schedule()->AddNode(CurrentBlock(), call);
103 return call; 103 return call;
104 } 104 }
105 105
106 106
107 Node* RawMachineAssembler::CallRuntime1(Runtime::FunctionId function, 107 Node* RawMachineAssembler::CallRuntime1(Runtime::FunctionId function,
108 Node* arg0, Node* frame_state) { 108 Node* arg0, Node* frame_state) {
109 CallDescriptor* descriptor = Linkage::GetRuntimeCallDescriptor( 109 CallDescriptor* descriptor = Linkage::GetRuntimeCallDescriptor(
110 function, 1, Operator::kNoProperties, CallDescriptor::kNeedsFrameState, 110 function, 1, Operator::kNoProperties, zone());
111 zone());
112 111
113 Node* centry = HeapConstant(CEntryStub(isolate(), 1).GetCode()); 112 Node* centry = HeapConstant(CEntryStub(isolate(), 1).GetCode());
114 Node* ref = NewNode( 113 Node* ref = NewNode(
115 common()->ExternalConstant(ExternalReference(function, isolate()))); 114 common()->ExternalConstant(ExternalReference(function, isolate())));
116 Node* arity = Int32Constant(1); 115 Node* arity = Int32Constant(1);
117 Node* context = Parameter(1); 116 Node* context = Parameter(1);
118 117
119 Node* call = graph()->NewNode(common()->Call(descriptor), centry, arg0, ref, 118 Node* call = graph()->NewNode(common()->Call(descriptor), centry, arg0, ref,
120 arity, context, frame_state); 119 arity, context, frame_state);
121 schedule()->AddNode(CurrentBlock(), call); 120 schedule()->AddNode(CurrentBlock(), call);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 Node* node = graph()->NewNode(op, input_count, inputs); 155 Node* node = graph()->NewNode(op, input_count, inputs);
157 BasicBlock* block = op->opcode() == IrOpcode::kParameter ? schedule()->start() 156 BasicBlock* block = op->opcode() == IrOpcode::kParameter ? schedule()->start()
158 : CurrentBlock(); 157 : CurrentBlock();
159 schedule()->AddNode(block, node); 158 schedule()->AddNode(block, node);
160 return node; 159 return node;
161 } 160 }
162 161
163 } // namespace compiler 162 } // namespace compiler
164 } // namespace internal 163 } // namespace internal
165 } // namespace v8 164 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/operator-properties-inl.h ('k') | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698