OLD | NEW |
---|---|
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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
521 ASSERT(context == NULL || context->IsContext()); | 521 ASSERT(context == NULL || context->IsContext()); |
522 thread_local_top_.context_ = context; | 522 thread_local_top_.context_ = context; |
523 } | 523 } |
524 Context** context_address() { return &thread_local_top_.context_; } | 524 Context** context_address() { return &thread_local_top_.context_; } |
525 | 525 |
526 SaveContext* save_context() {return thread_local_top_.save_context_; } | 526 SaveContext* save_context() {return thread_local_top_.save_context_; } |
527 void set_save_context(SaveContext* save) { | 527 void set_save_context(SaveContext* save) { |
528 thread_local_top_.save_context_ = save; | 528 thread_local_top_.save_context_ = save; |
529 } | 529 } |
530 | 530 |
531 // Access to the map of "new Object()" | |
Jakob Kummerow
2012/07/12 14:38:19
nit: Comments should be sentences with one or more
| |
532 Map* global_object_map() { | |
Jakob Kummerow
2012/07/12 14:38:19
The name is misleading. "empty_object_map" would b
| |
533 return context()->global_context()->object_function()->map(); | |
534 } | |
535 | |
531 // Access to current thread id. | 536 // Access to current thread id. |
532 ThreadId thread_id() { return thread_local_top_.thread_id_; } | 537 ThreadId thread_id() { return thread_local_top_.thread_id_; } |
533 void set_thread_id(ThreadId id) { thread_local_top_.thread_id_ = id; } | 538 void set_thread_id(ThreadId id) { thread_local_top_.thread_id_ = id; } |
534 | 539 |
535 // Interface to pending exception. | 540 // Interface to pending exception. |
536 MaybeObject* pending_exception() { | 541 MaybeObject* pending_exception() { |
537 ASSERT(has_pending_exception()); | 542 ASSERT(has_pending_exception()); |
538 return thread_local_top_.pending_exception_; | 543 return thread_local_top_.pending_exception_; |
539 } | 544 } |
540 bool external_caught_exception() { | 545 bool external_caught_exception() { |
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1423 | 1428 |
1424 // Mark the global context with out of memory. | 1429 // Mark the global context with out of memory. |
1425 inline void Context::mark_out_of_memory() { | 1430 inline void Context::mark_out_of_memory() { |
1426 global_context()->set_out_of_memory(HEAP->true_value()); | 1431 global_context()->set_out_of_memory(HEAP->true_value()); |
1427 } | 1432 } |
1428 | 1433 |
1429 | 1434 |
1430 } } // namespace v8::internal | 1435 } } // namespace v8::internal |
1431 | 1436 |
1432 #endif // V8_ISOLATE_H_ | 1437 #endif // V8_ISOLATE_H_ |
OLD | NEW |