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

Side by Side Diff: src/api.cc

Issue 2448443002: Revert of [compiler] Prepare for partially shipping Ignition. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | src/bootstrapper.cc » ('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 2250 matching lines...) Expand 10 before | Expand all | Expand 10 after
2261 } 2261 }
2262 script->set_origin_options(origin.Options()); 2262 script->set_origin_options(origin.Options());
2263 if (!origin.SourceMapUrl().IsEmpty()) { 2263 if (!origin.SourceMapUrl().IsEmpty()) {
2264 script->set_source_mapping_url( 2264 script->set_source_mapping_url(
2265 *Utils::OpenHandle(*(origin.SourceMapUrl()))); 2265 *Utils::OpenHandle(*(origin.SourceMapUrl())));
2266 } 2266 }
2267 2267
2268 source->info->set_script(script); 2268 source->info->set_script(script);
2269 2269
2270 { 2270 {
2271 // Create a canonical handle scope for compiling Ignition bytecode. This is 2271 // Create a canonical handle scope if compiling ignition bytecode. This is
2272 // required by the constant array builder to de-duplicate objects without 2272 // required by the constant array builder to de-duplicate objects without
2273 // dereferencing handles. 2273 // dereferencing handles.
2274 i::CanonicalHandleScope canonical(isolate); 2274 std::unique_ptr<i::CanonicalHandleScope> canonical;
2275 if (i::FLAG_ignition) canonical.reset(new i::CanonicalHandleScope(isolate));
2275 2276
2276 // Do the parsing tasks which need to be done on the main thread. This will 2277 // Do the parsing tasks which need to be done on the main thread. This will
2277 // also handle parse errors. 2278 // also handle parse errors.
2278 source->parser->Internalize(isolate, script, 2279 source->parser->Internalize(isolate, script,
2279 source->info->literal() == nullptr); 2280 source->info->literal() == nullptr);
2280 } 2281 }
2281 source->parser->HandleSourceURLComments(isolate, script); 2282 source->parser->HandleSourceURLComments(isolate, script);
2282 2283
2283 i::Handle<i::SharedFunctionInfo> result; 2284 i::Handle<i::SharedFunctionInfo> result;
2284 if (source->info->literal() != nullptr) { 2285 if (source->info->literal() != nullptr) {
(...skipping 7209 matching lines...) Expand 10 before | Expand all | Expand 10 after
9494 Address callback_address = 9495 Address callback_address =
9495 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 9496 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
9496 VMState<EXTERNAL> state(isolate); 9497 VMState<EXTERNAL> state(isolate);
9497 ExternalCallbackScope call_scope(isolate, callback_address); 9498 ExternalCallbackScope call_scope(isolate, callback_address);
9498 callback(info); 9499 callback(info);
9499 } 9500 }
9500 9501
9501 9502
9502 } // namespace internal 9503 } // namespace internal
9503 } // namespace v8 9504 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698