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

Side by Side Diff: src/api.cc

Issue 2427953002: [compiler] Ship Ignition for all TurboFan code. (Closed)
Patch Set: Fix better. Created 4 years, 2 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 | « 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 2240 matching lines...) Expand 10 before | Expand all | Expand 10 after
2251 } 2251 }
2252 script->set_origin_options(origin.Options()); 2252 script->set_origin_options(origin.Options());
2253 if (!origin.SourceMapUrl().IsEmpty()) { 2253 if (!origin.SourceMapUrl().IsEmpty()) {
2254 script->set_source_mapping_url( 2254 script->set_source_mapping_url(
2255 *Utils::OpenHandle(*(origin.SourceMapUrl()))); 2255 *Utils::OpenHandle(*(origin.SourceMapUrl())));
2256 } 2256 }
2257 2257
2258 source->info->set_script(script); 2258 source->info->set_script(script);
2259 2259
2260 { 2260 {
2261 // Create a canonical handle scope if compiling ignition bytecode. This is 2261 // Create a canonical handle scope for compiling Ignition bytecode. This is
2262 // required by the constant array builder to de-duplicate objects without 2262 // required by the constant array builder to de-duplicate objects without
2263 // dereferencing handles. 2263 // dereferencing handles.
2264 std::unique_ptr<i::CanonicalHandleScope> canonical; 2264 i::CanonicalHandleScope canonical(isolate);
2265 if (i::FLAG_ignition) canonical.reset(new i::CanonicalHandleScope(isolate));
2266 2265
2267 // Do the parsing tasks which need to be done on the main thread. This will 2266 // Do the parsing tasks which need to be done on the main thread. This will
2268 // also handle parse errors. 2267 // also handle parse errors.
2269 source->parser->Internalize(isolate, script, 2268 source->parser->Internalize(isolate, script,
2270 source->info->literal() == nullptr); 2269 source->info->literal() == nullptr);
2271 } 2270 }
2272 source->parser->HandleSourceURLComments(isolate, script); 2271 source->parser->HandleSourceURLComments(isolate, script);
2273 2272
2274 i::Handle<i::SharedFunctionInfo> result; 2273 i::Handle<i::SharedFunctionInfo> result;
2275 if (source->info->literal() != nullptr) { 2274 if (source->info->literal() != nullptr) {
(...skipping 7170 matching lines...) Expand 10 before | Expand all | Expand 10 after
9446 Address callback_address = 9445 Address callback_address =
9447 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 9446 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
9448 VMState<EXTERNAL> state(isolate); 9447 VMState<EXTERNAL> state(isolate);
9449 ExternalCallbackScope call_scope(isolate, callback_address); 9448 ExternalCallbackScope call_scope(isolate, callback_address);
9450 callback(info); 9449 callback(info);
9451 } 9450 }
9452 9451
9453 9452
9454 } // namespace internal 9453 } // namespace internal
9455 } // namespace v8 9454 } // 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