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

Side by Side Diff: test/cctest/interpreter/interpreter-tester.h

Issue 1906823002: Move of the type feedback vector to the closure. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 4 years, 6 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/heap/test-heap.cc ('k') | test/cctest/interpreter/test-interpreter.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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/execution.h" 7 #include "src/execution.h"
8 #include "src/handles.h" 8 #include "src/handles.h"
9 #include "src/interpreter/bytecode-array-builder.h" 9 #include "src/interpreter/bytecode-array-builder.h"
10 #include "src/interpreter/interpreter.h" 10 #include "src/interpreter/interpreter.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 function = Handle<JSFunction>::cast(v8::Utils::OpenHandle( 107 function = Handle<JSFunction>::cast(v8::Utils::OpenHandle(
108 *v8::Local<v8::Function>::Cast(CompileRun(source.c_str())))); 108 *v8::Local<v8::Function>::Cast(CompileRun(source.c_str()))));
109 function->ReplaceCode( 109 function->ReplaceCode(
110 *isolate_->builtins()->InterpreterEntryTrampoline()); 110 *isolate_->builtins()->InterpreterEntryTrampoline());
111 } 111 }
112 112
113 if (!bytecode_.is_null()) { 113 if (!bytecode_.is_null()) {
114 function->shared()->set_function_data(*bytecode_.ToHandleChecked()); 114 function->shared()->set_function_data(*bytecode_.ToHandleChecked());
115 } 115 }
116 if (!feedback_vector_.is_null()) { 116 if (!feedback_vector_.is_null()) {
117 function->shared()->set_feedback_vector( 117 function->literals()->set_feedback_vector(
118 *feedback_vector_.ToHandleChecked()); 118 *feedback_vector_.ToHandleChecked());
119 } 119 }
120 return function; 120 return function;
121 } 121 }
122 122
123 DISALLOW_COPY_AND_ASSIGN(InterpreterTester); 123 DISALLOW_COPY_AND_ASSIGN(InterpreterTester);
124 }; 124 };
125 125
126 } // namespace interpreter 126 } // namespace interpreter
127 } // namespace internal 127 } // namespace internal
128 } // namespace v8 128 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/heap/test-heap.cc ('k') | test/cctest/interpreter/test-interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698