| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |