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

Side by Side Diff: src/isolate.cc

Issue 13772004: Train wreck reduction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « src/ic.cc ('k') | no next file » | 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 // 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 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 MaybeObject* e = scheduled_exception(); 1501 MaybeObject* e = scheduled_exception();
1502 if (e->IsFailure() && Failure::cast(e)->IsOutOfMemoryException()) { 1502 if (e->IsFailure() && Failure::cast(e)->IsOutOfMemoryException()) {
1503 return true; 1503 return true;
1504 } 1504 }
1505 } 1505 }
1506 return false; 1506 return false;
1507 } 1507 }
1508 1508
1509 1509
1510 Handle<Context> Isolate::native_context() { 1510 Handle<Context> Isolate::native_context() {
1511 GlobalObject* global = thread_local_top()->context_->global_object(); 1511 return Handle<Context>(context()->global_object()->native_context());
1512 return Handle<Context>(global->native_context());
1513 } 1512 }
1514 1513
1515 1514
1516 Handle<Context> Isolate::global_context() { 1515 Handle<Context> Isolate::global_context() {
1517 GlobalObject* global = thread_local_top()->context_->global_object(); 1516 return Handle<Context>(context()->global_object()->global_context());
1518 return Handle<Context>(global->global_context());
1519 } 1517 }
1520 1518
1521 1519
1522 Handle<Context> Isolate::GetCallingNativeContext() { 1520 Handle<Context> Isolate::GetCallingNativeContext() {
1523 JavaScriptFrameIterator it(this); 1521 JavaScriptFrameIterator it(this);
1524 #ifdef ENABLE_DEBUGGER_SUPPORT 1522 #ifdef ENABLE_DEBUGGER_SUPPORT
1525 if (debug_->InDebugger()) { 1523 if (debug_->InDebugger()) {
1526 while (!it.done()) { 1524 while (!it.done()) {
1527 JavaScriptFrame* frame = it.frame(); 1525 JavaScriptFrame* frame = it.frame();
1528 Context* context = Context::cast(frame->context()); 1526 Context* context = Context::cast(frame->context());
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
2392 2390
2393 #ifdef DEBUG 2391 #ifdef DEBUG
2394 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2392 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2395 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2393 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2396 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2394 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2397 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2395 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2398 #undef ISOLATE_FIELD_OFFSET 2396 #undef ISOLATE_FIELD_OFFSET
2399 #endif 2397 #endif
2400 2398
2401 } } // namespace v8::internal 2399 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698