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

Side by Side Diff: src/bootstrapper.cc

Issue 10052008: Merged r11219, r11220, r11236, r11238 into 3.8 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.8
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/debug.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 return CompileNative(name, source_code); 1310 return CompileNative(name, source_code);
1311 } 1311 }
1312 1312
1313 1313
1314 bool Genesis::CompileNative(Vector<const char> name, Handle<String> source) { 1314 bool Genesis::CompileNative(Vector<const char> name, Handle<String> source) {
1315 HandleScope scope; 1315 HandleScope scope;
1316 Isolate* isolate = source->GetIsolate(); 1316 Isolate* isolate = source->GetIsolate();
1317 #ifdef ENABLE_DEBUGGER_SUPPORT 1317 #ifdef ENABLE_DEBUGGER_SUPPORT
1318 isolate->debugger()->set_compiling_natives(true); 1318 isolate->debugger()->set_compiling_natives(true);
1319 #endif 1319 #endif
1320 // During genesis, the boilerplate for stack overflow won't work until the
1321 // environment has been at least partially initialized. Add a stack check
1322 // before entering JS code to catch overflow early.
1323 StackLimitCheck check(Isolate::Current());
1324 if (check.HasOverflowed()) return false;
1325
1320 bool result = CompileScriptCached(name, 1326 bool result = CompileScriptCached(name,
1321 source, 1327 source,
1322 NULL, 1328 NULL,
1323 NULL, 1329 NULL,
1324 Handle<Context>(isolate->context()), 1330 Handle<Context>(isolate->context()),
1325 true); 1331 true);
1326 ASSERT(isolate->has_pending_exception() != result); 1332 ASSERT(isolate->has_pending_exception() != result);
1327 if (!result) isolate->clear_pending_exception(); 1333 if (!result) isolate->clear_pending_exception();
1328 #ifdef ENABLE_DEBUGGER_SUPPORT 1334 #ifdef ENABLE_DEBUGGER_SUPPORT
1329 isolate->debugger()->set_compiling_natives(false); 1335 isolate->debugger()->set_compiling_natives(false);
(...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after
2374 return from + sizeof(NestingCounterType); 2380 return from + sizeof(NestingCounterType);
2375 } 2381 }
2376 2382
2377 2383
2378 // Called when the top-level V8 mutex is destroyed. 2384 // Called when the top-level V8 mutex is destroyed.
2379 void Bootstrapper::FreeThreadResources() { 2385 void Bootstrapper::FreeThreadResources() {
2380 ASSERT(!IsActive()); 2386 ASSERT(!IsActive());
2381 } 2387 }
2382 2388
2383 } } // namespace v8::internal 2389 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698