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

Side by Side Diff: test/cctest/compiler/test-run-bytecode-graph-builder.cc

Issue 1688283003: [Interpreter] Implements calls through CallICStub in the interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: removes an unused label declaration. Created 4 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 | « test/cctest/cctest.status ('k') | test/cctest/interpreter/test-bytecode-generator.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 <utility> 5 #include <utility>
6 6
7 #include "src/compiler/pipeline.h" 7 #include "src/compiler/pipeline.h"
8 #include "src/execution.h" 8 #include "src/execution.h"
9 #include "src/handles.h" 9 #include "src/handles.h"
10 #include "src/interpreter/bytecode-array-builder.h" 10 #include "src/interpreter/bytecode-array-builder.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 // TODO(mstarzinger): We should be able to prime CompilationInfo without 130 // TODO(mstarzinger): We should be able to prime CompilationInfo without
131 // having to instantiate a ParseInfo first. Fix this! 131 // having to instantiate a ParseInfo first. Fix this!
132 ParseInfo parse_info(zone_, function); 132 ParseInfo parse_info(zone_, function);
133 133
134 CompilationInfo compilation_info(&parse_info); 134 CompilationInfo compilation_info(&parse_info);
135 compilation_info.SetOptimizing(); 135 compilation_info.SetOptimizing();
136 compilation_info.MarkAsDeoptimizationEnabled(); 136 compilation_info.MarkAsDeoptimizationEnabled();
137 compiler::Pipeline pipeline(&compilation_info); 137 compiler::Pipeline pipeline(&compilation_info);
138 Handle<Code> code = pipeline.GenerateCode(); 138 Handle<Code> code = pipeline.GenerateCode();
139 // We do not actually record weak dependencies between objects and
140 // code objects. We just clear the dependencies for now.
141 compilation_info.dependencies()->Commit(compilation_info.code());
139 function->ReplaceCode(*code); 142 function->ReplaceCode(*code);
140 143
141 return function; 144 return function;
142 } 145 }
143 146
144 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphTester); 147 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphTester);
145 }; 148 };
146 149
147 150
148 #define SPACE() 151 #define SPACE()
(...skipping 2826 matching lines...) Expand 10 before | Expand all | Expand 10 after
2975 2978
2976 BytecodeGraphTester tester(isolate, zone, script.start()); 2979 BytecodeGraphTester tester(isolate, zone, script.start());
2977 auto callable = tester.GetCallable<>(); 2980 auto callable = tester.GetCallable<>();
2978 Handle<Object> return_value = callable().ToHandleChecked(); 2981 Handle<Object> return_value = callable().ToHandleChecked();
2979 CHECK(return_value->SameValue(*snippet.return_value())); 2982 CHECK(return_value->SameValue(*snippet.return_value()));
2980 } 2983 }
2981 2984
2982 } // namespace compiler 2985 } // namespace compiler
2983 } // namespace internal 2986 } // namespace internal
2984 } // namespace v8 2987 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/cctest.status ('k') | test/cctest/interpreter/test-bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698