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

Side by Side Diff: src/api.cc

Issue 1801203002: Parser: Make skipping HTML comments optional. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed prefix; set default only on v8::ScriptOrigin constructor. Created 4 years, 9 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
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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/objects.h » ('j') | src/parsing/scanner.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698