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

Side by Side Diff: src/isolate.h

Issue 23480067: remove ISOLATE (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/ia32/code-stubs-ia32.cc ('k') | src/jsregexp.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 // 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 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after
1511 ~PostponeInterruptsScope() { 1511 ~PostponeInterruptsScope() {
1512 if (--stack_guard_->thread_local_.postpone_interrupts_nesting_ == 0) { 1512 if (--stack_guard_->thread_local_.postpone_interrupts_nesting_ == 0) {
1513 stack_guard_->EnableInterrupts(); 1513 stack_guard_->EnableInterrupts();
1514 } 1514 }
1515 } 1515 }
1516 private: 1516 private:
1517 StackGuard* stack_guard_; 1517 StackGuard* stack_guard_;
1518 }; 1518 };
1519 1519
1520 1520
1521 // Temporary macros for accessing current isolate and its subobjects.
1522 // They provide better readability, especially when used a lot in the code.
1523 #define ISOLATE (v8::internal::Isolate::Current())
1524
1525
1526 // Tells whether the native context is marked with out of memory. 1521 // Tells whether the native context is marked with out of memory.
1527 inline bool Context::has_out_of_memory() { 1522 inline bool Context::has_out_of_memory() {
1528 return native_context()->out_of_memory()->IsTrue(); 1523 return native_context()->out_of_memory()->IsTrue();
1529 } 1524 }
1530 1525
1531 1526
1532 // Mark the native context with out of memory. 1527 // Mark the native context with out of memory.
1533 inline void Context::mark_out_of_memory() { 1528 inline void Context::mark_out_of_memory() {
1534 native_context()->set_out_of_memory(GetIsolate()->heap()->true_value()); 1529 native_context()->set_out_of_memory(GetIsolate()->heap()->true_value());
1535 } 1530 }
1536 1531
1537 1532
1538 } } // namespace v8::internal 1533 } } // namespace v8::internal
1539 1534
1540 #endif // V8_ISOLATE_H_ 1535 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/jsregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698