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

Side by Side Diff: test/unittests/compiler/bytecode-graph-builder-unittest.cc

Issue 1461973002: [turbofan] Make new.target explicit in JSCallDescriptor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/x87/macro-assembler-x87.h ('k') | test/unittests/compiler/instruction-selector-unittest.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 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 <iostream> 5 #include <iostream>
6 6
7 #include "src/compiler/bytecode-graph-builder.h" 7 #include "src/compiler/bytecode-graph-builder.h"
8 #include "src/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/graph-visualizer.h" 9 #include "src/compiler/graph-visualizer.h"
10 #include "src/compiler/instruction.h" 10 #include "src/compiler/instruction.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 return IsInt32Constant(value); 127 return IsInt32Constant(value);
128 } 128 }
129 } 129 }
130 130
131 131
132 Matcher<Node*> BytecodeGraphBuilderTest::IsFeedbackVector(Node* effect, 132 Matcher<Node*> BytecodeGraphBuilderTest::IsFeedbackVector(Node* effect,
133 Node* control) { 133 Node* control) {
134 int offset = SharedFunctionInfo::kFeedbackVectorOffset - kHeapObjectTag; 134 int offset = SharedFunctionInfo::kFeedbackVectorOffset - kHeapObjectTag;
135 int offset1 = JSFunction::kSharedFunctionInfoOffset - kHeapObjectTag; 135 int offset1 = JSFunction::kSharedFunctionInfoOffset - kHeapObjectTag;
136 136
137 return IsLoad(kMachAnyTagged, 137 return IsLoad(
138 IsLoad(kMachAnyTagged, 138 kMachAnyTagged,
139 IsParameter(Linkage::kJSFunctionCallClosureParamIndex), 139 IsLoad(kMachAnyTagged, IsParameter(Linkage::kJSCallClosureParamIndex),
140 IsIntPtrConstant(offset1), effect, control), 140 IsIntPtrConstant(offset1), effect, control),
141 IsIntPtrConstant(offset), effect, control); 141 IsIntPtrConstant(offset), effect, control);
142 } 142 }
143 143
144 144
145 TEST_F(BytecodeGraphBuilderTest, ReturnUndefined) { 145 TEST_F(BytecodeGraphBuilderTest, ReturnUndefined) {
146 interpreter::BytecodeArrayBuilder array_builder(isolate(), zone()); 146 interpreter::BytecodeArrayBuilder array_builder(isolate(), zone());
147 array_builder.set_locals_count(0); 147 array_builder.set_locals_count(0);
148 array_builder.set_context_count(0); 148 array_builder.set_context_count(0);
149 array_builder.set_parameter_count(1); 149 array_builder.set_parameter_count(1);
150 array_builder.LoadUndefined().Return(); 150 array_builder.LoadUndefined().Return();
151 151
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 523
524 EXPECT_THAT(ret, IsReturn(_, store_global_matcher, _)); 524 EXPECT_THAT(ret, IsReturn(_, store_global_matcher, _));
525 } 525 }
526 } 526 }
527 } 527 }
528 528
529 529
530 } // namespace compiler 530 } // namespace compiler
531 } // namespace internal 531 } // namespace internal
532 } // namespace v8 532 } // namespace v8
OLDNEW
« no previous file with comments | « src/x87/macro-assembler-x87.h ('k') | test/unittests/compiler/instruction-selector-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698