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

Side by Side Diff: src/top.cc

Issue 3601010: [Isolates] Allow running multiple isolates in shell and use this in tests. (Closed)
Patch Set: Created 10 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 VMState state(EXTERNAL); 454 VMState state(EXTERNAL);
455 result = callback(v8::Utils::ToLocal(receiver_handle), 455 result = callback(v8::Utils::ToLocal(receiver_handle),
456 index, 456 index,
457 type, 457 type,
458 v8::Utils::ToLocal(data)); 458 v8::Utils::ToLocal(data));
459 } 459 }
460 return result; 460 return result;
461 } 461 }
462 462
463 463
464 const char* Isolate::kStackOverflowMessage = 464 const char* const Isolate::kStackOverflowMessage =
465 "Uncaught RangeError: Maximum call stack size exceeded"; 465 "Uncaught RangeError: Maximum call stack size exceeded";
466 466
467 467
468 Failure* Isolate::StackOverflow() { 468 Failure* Isolate::StackOverflow() {
469 HandleScope scope; 469 HandleScope scope;
470 Handle<String> key = Factory::stack_overflow_symbol(); 470 Handle<String> key = Factory::stack_overflow_symbol();
471 Handle<JSObject> boilerplate = 471 Handle<JSObject> boilerplate =
472 Handle<JSObject>::cast(GetProperty(js_builtins_object(), key)); 472 Handle<JSObject>::cast(GetProperty(js_builtins_object(), key));
473 Handle<Object> exception = Copy(boilerplate); 473 Handle<Object> exception = Copy(boilerplate);
474 // TODO(1240995): To avoid having to call JavaScript code to compute 474 // TODO(1240995): To avoid having to call JavaScript code to compute
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 Isolate::Current()->break_access()->Lock(); 852 Isolate::Current()->break_access()->Lock();
853 } 853 }
854 854
855 855
856 ExecutionAccess::~ExecutionAccess() { 856 ExecutionAccess::~ExecutionAccess() {
857 Isolate::Current()->break_access()->Unlock(); 857 Isolate::Current()->break_access()->Unlock();
858 } 858 }
859 859
860 860
861 } } // namespace v8::internal 861 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698