| 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 reinterpret_cast<v8::Isolate*>(script->GetIsolate()); | 221 reinterpret_cast<v8::Isolate*>(script->GetIsolate()); |
| 222 ScriptOriginOptions options(script->origin_options()); | 222 ScriptOriginOptions options(script->origin_options()); |
| 223 v8::ScriptOrigin origin( | 223 v8::ScriptOrigin origin( |
| 224 Utils::ToLocal(scriptName), | 224 Utils::ToLocal(scriptName), |
| 225 v8::Integer::New(v8_isolate, script->line_offset()), | 225 v8::Integer::New(v8_isolate, script->line_offset()), |
| 226 v8::Integer::New(v8_isolate, script->column_offset()), | 226 v8::Integer::New(v8_isolate, script->column_offset()), |
| 227 v8::Boolean::New(v8_isolate, options.IsSharedCrossOrigin()), | 227 v8::Boolean::New(v8_isolate, options.IsSharedCrossOrigin()), |
| 228 v8::Integer::New(v8_isolate, script->id()), | 228 v8::Integer::New(v8_isolate, script->id()), |
| 229 v8::Boolean::New(v8_isolate, options.IsEmbedderDebugScript()), | 229 v8::Boolean::New(v8_isolate, options.IsEmbedderDebugScript()), |
| 230 Utils::ToLocal(source_map_url), | 230 Utils::ToLocal(source_map_url), |
| 231 v8::Boolean::New(v8_isolate, options.IsOpaque())); | 231 v8::Boolean::New(v8_isolate, options.IsOpaque()), |
| 232 v8::Boolean::New(v8_isolate, options.SkipHtmlComments())); |
| 232 return origin; | 233 return origin; |
| 233 } | 234 } |
| 234 | 235 |
| 235 | 236 |
| 236 // --- E x c e p t i o n B e h a v i o r --- | 237 // --- E x c e p t i o n B e h a v i o r --- |
| 237 | 238 |
| 238 | 239 |
| 239 void i::FatalProcessOutOfMemory(const char* location) { | 240 void i::FatalProcessOutOfMemory(const char* location) { |
| 240 i::V8::FatalProcessOutOfMemory(location, false); | 241 i::V8::FatalProcessOutOfMemory(location, false); |
| 241 } | 242 } |
| (...skipping 8451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8693 Address callback_address = | 8694 Address callback_address = |
| 8694 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 8695 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
| 8695 VMState<EXTERNAL> state(isolate); | 8696 VMState<EXTERNAL> state(isolate); |
| 8696 ExternalCallbackScope call_scope(isolate, callback_address); | 8697 ExternalCallbackScope call_scope(isolate, callback_address); |
| 8697 callback(info); | 8698 callback(info); |
| 8698 } | 8699 } |
| 8699 | 8700 |
| 8700 | 8701 |
| 8701 } // namespace internal | 8702 } // namespace internal |
| 8702 } // namespace v8 | 8703 } // namespace v8 |
| OLD | NEW |