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

Side by Side Diff: src/api.cc

Issue 2109773004: Move RelocInfo::kNoPosition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@removedead
Patch Set: rebase Created 4 years, 5 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 | « patch ('k') | src/assembler.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/api.h" 5 #include "src/api.h"
6 6
7 #include <string.h> // For memcpy, strlen. 7 #include <string.h> // For memcpy, strlen.
8 #ifdef V8_USE_ADDRESS_SANITIZER 8 #ifdef V8_USE_ADDRESS_SANITIZER
9 #include <sanitizer/asan_interface.h> 9 #include <sanitizer/asan_interface.h>
10 #endif // V8_USE_ADDRESS_SANITIZER 10 #endif // V8_USE_ADDRESS_SANITIZER
(...skipping 20 matching lines...) Expand all
31 #include "src/compiler.h" 31 #include "src/compiler.h"
32 #include "src/context-measure.h" 32 #include "src/context-measure.h"
33 #include "src/contexts.h" 33 #include "src/contexts.h"
34 #include "src/conversions-inl.h" 34 #include "src/conversions-inl.h"
35 #include "src/counters.h" 35 #include "src/counters.h"
36 #include "src/debug/debug.h" 36 #include "src/debug/debug.h"
37 #include "src/deoptimizer.h" 37 #include "src/deoptimizer.h"
38 #include "src/execution.h" 38 #include "src/execution.h"
39 #include "src/gdb-jit.h" 39 #include "src/gdb-jit.h"
40 #include "src/global-handles.h" 40 #include "src/global-handles.h"
41 #include "src/globals.h"
41 #include "src/icu_util.h" 42 #include "src/icu_util.h"
42 #include "src/isolate-inl.h" 43 #include "src/isolate-inl.h"
43 #include "src/json-parser.h" 44 #include "src/json-parser.h"
44 #include "src/json-stringifier.h" 45 #include "src/json-stringifier.h"
45 #include "src/messages.h" 46 #include "src/messages.h"
46 #include "src/parsing/parser.h" 47 #include "src/parsing/parser.h"
47 #include "src/parsing/scanner-character-streams.h" 48 #include "src/parsing/scanner-character-streams.h"
48 #include "src/pending-compilation-error-handler.h" 49 #include "src/pending-compilation-error-handler.h"
49 #include "src/profiler/cpu-profiler.h" 50 #include "src/profiler/cpu-profiler.h"
50 #include "src/profiler/heap-profiler.h" 51 #include "src/profiler/heap-profiler.h"
(...skipping 2054 matching lines...) Expand 10 before | Expand all | Expand 10 after
2105 for (size_t i = 0; i < context_extension_count; ++i) { 2106 for (size_t i = 0; i < context_extension_count; ++i) {
2106 i::Handle<i::JSReceiver> extension = 2107 i::Handle<i::JSReceiver> extension =
2107 Utils::OpenHandle(*context_extensions[i]); 2108 Utils::OpenHandle(*context_extensions[i]);
2108 if (!extension->IsJSObject()) return Local<Function>(); 2109 if (!extension->IsJSObject()) return Local<Function>();
2109 i::Handle<i::JSFunction> closure(context->closure(), isolate); 2110 i::Handle<i::JSFunction> closure(context->closure(), isolate);
2110 context = factory->NewWithContext(closure, context, extension); 2111 context = factory->NewWithContext(closure, context, extension);
2111 } 2112 }
2112 2113
2113 i::Handle<i::Object> name_obj; 2114 i::Handle<i::Object> name_obj;
2114 int eval_scope_position = 0; 2115 int eval_scope_position = 0;
2115 int eval_position = i::RelocInfo::kNoPosition; 2116 int eval_position = i::kNoSourcePosition;
2116 int line_offset = 0; 2117 int line_offset = 0;
2117 int column_offset = 0; 2118 int column_offset = 0;
2118 if (!source->resource_name.IsEmpty()) { 2119 if (!source->resource_name.IsEmpty()) {
2119 name_obj = Utils::OpenHandle(*(source->resource_name)); 2120 name_obj = Utils::OpenHandle(*(source->resource_name));
2120 } 2121 }
2121 if (!source->resource_line_offset.IsEmpty()) { 2122 if (!source->resource_line_offset.IsEmpty()) {
2122 line_offset = static_cast<int>(source->resource_line_offset->Value()); 2123 line_offset = static_cast<int>(source->resource_line_offset->Value());
2123 } 2124 }
2124 if (!source->resource_column_offset.IsEmpty()) { 2125 if (!source->resource_column_offset.IsEmpty()) {
2125 column_offset = static_cast<int>(source->resource_column_offset->Value()); 2126 column_offset = static_cast<int>(source->resource_column_offset->Value());
(...skipping 6803 matching lines...) Expand 10 before | Expand all | Expand 10 after
8929 Address callback_address = 8930 Address callback_address =
8930 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 8931 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
8931 VMState<EXTERNAL> state(isolate); 8932 VMState<EXTERNAL> state(isolate);
8932 ExternalCallbackScope call_scope(isolate, callback_address); 8933 ExternalCallbackScope call_scope(isolate, callback_address);
8933 callback(info); 8934 callback(info);
8934 } 8935 }
8935 8936
8936 8937
8937 } // namespace internal 8938 } // namespace internal
8938 } // namespace v8 8939 } // namespace v8
OLDNEW
« no previous file with comments | « patch ('k') | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698