| OLD | NEW |
| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 i::Handle<i::Object> source_map_url(script->source_mapping_url(), isolate); | 256 i::Handle<i::Object> source_map_url(script->source_mapping_url(), isolate); |
| 257 v8::Isolate* v8_isolate = | 257 v8::Isolate* v8_isolate = |
| 258 reinterpret_cast<v8::Isolate*>(script->GetIsolate()); | 258 reinterpret_cast<v8::Isolate*>(script->GetIsolate()); |
| 259 ScriptOriginOptions options(script->origin_options()); | 259 ScriptOriginOptions options(script->origin_options()); |
| 260 v8::ScriptOrigin origin( | 260 v8::ScriptOrigin origin( |
| 261 Utils::ToLocal(scriptName), | 261 Utils::ToLocal(scriptName), |
| 262 v8::Integer::New(v8_isolate, script->line_offset()), | 262 v8::Integer::New(v8_isolate, script->line_offset()), |
| 263 v8::Integer::New(v8_isolate, script->column_offset()), | 263 v8::Integer::New(v8_isolate, script->column_offset()), |
| 264 v8::Boolean::New(v8_isolate, options.IsSharedCrossOrigin()), | 264 v8::Boolean::New(v8_isolate, options.IsSharedCrossOrigin()), |
| 265 v8::Integer::New(v8_isolate, script->id()), | 265 v8::Integer::New(v8_isolate, script->id()), |
| 266 v8::Boolean::New(v8_isolate, options.IsEmbedderDebugScript()), | |
| 267 Utils::ToLocal(source_map_url), | 266 Utils::ToLocal(source_map_url), |
| 268 v8::Boolean::New(v8_isolate, options.IsOpaque())); | 267 v8::Boolean::New(v8_isolate, options.IsOpaque())); |
| 269 return origin; | 268 return origin; |
| 270 } | 269 } |
| 271 | 270 |
| 272 | 271 |
| 273 // --- E x c e p t i o n B e h a v i o r --- | 272 // --- E x c e p t i o n B e h a v i o r --- |
| 274 | 273 |
| 275 | 274 |
| 276 void i::FatalProcessOutOfMemory(const char* location) { | 275 void i::FatalProcessOutOfMemory(const char* location) { |
| (...skipping 9578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9855 Address callback_address = | 9854 Address callback_address = |
| 9856 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 9855 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
| 9857 VMState<EXTERNAL> state(isolate); | 9856 VMState<EXTERNAL> state(isolate); |
| 9858 ExternalCallbackScope call_scope(isolate, callback_address); | 9857 ExternalCallbackScope call_scope(isolate, callback_address); |
| 9859 callback(info); | 9858 callback(info); |
| 9860 } | 9859 } |
| 9861 | 9860 |
| 9862 | 9861 |
| 9863 } // namespace internal | 9862 } // namespace internal |
| 9864 } // namespace v8 | 9863 } // namespace v8 |
| OLD | NEW |