Chromium Code Reviews| 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 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 654 static Address c_entry_fp(ThreadLocalTop* thread) { | 654 static Address c_entry_fp(ThreadLocalTop* thread) { |
| 655 return thread->c_entry_fp_; | 655 return thread->c_entry_fp_; |
| 656 } | 656 } |
| 657 static Address handler(ThreadLocalTop* thread) { return thread->handler_; } | 657 static Address handler(ThreadLocalTop* thread) { return thread->handler_; } |
| 658 | 658 |
| 659 inline Address* c_entry_fp_address() { | 659 inline Address* c_entry_fp_address() { |
| 660 return &thread_local_top_.c_entry_fp_; | 660 return &thread_local_top_.c_entry_fp_; |
| 661 } | 661 } |
| 662 inline Address* handler_address() { return &thread_local_top_.handler_; } | 662 inline Address* handler_address() { return &thread_local_top_.handler_; } |
| 663 | 663 |
| 664 // Bottom JS entry (see StackTracer::Trace in sampler.cc). | 664 // Bottom JS entry. |
| 665 static Address js_entry_sp(ThreadLocalTop* thread) { | 665 Address js_entry_sp() { |
|
alph
2013/08/07 09:51:59
Can't you just use the js_entry_sp_address?
yurys
2013/08/07 10:07:32
That would be inconsistent with the accessors abov
| |
| 666 return thread->js_entry_sp_; | 666 return thread_local_top_.js_entry_sp_; |
| 667 } | 667 } |
| 668 inline Address* js_entry_sp_address() { | 668 inline Address* js_entry_sp_address() { |
| 669 return &thread_local_top_.js_entry_sp_; | 669 return &thread_local_top_.js_entry_sp_; |
| 670 } | 670 } |
| 671 | 671 |
| 672 // Generated code scratch locations. | 672 // Generated code scratch locations. |
| 673 void* formal_count_address() { return &thread_local_top_.formal_count_; } | 673 void* formal_count_address() { return &thread_local_top_.formal_count_; } |
| 674 | 674 |
| 675 // Returns the global object of the current context. It could be | 675 // Returns the global object of the current context. It could be |
| 676 // a builtin object, or a JS global object. | 676 // a builtin object, or a JS global object. |
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1527 | 1527 |
| 1528 // Mark the native context with out of memory. | 1528 // Mark the native context with out of memory. |
| 1529 inline void Context::mark_out_of_memory() { | 1529 inline void Context::mark_out_of_memory() { |
| 1530 native_context()->set_out_of_memory(HEAP->true_value()); | 1530 native_context()->set_out_of_memory(HEAP->true_value()); |
| 1531 } | 1531 } |
| 1532 | 1532 |
| 1533 | 1533 |
| 1534 } } // namespace v8::internal | 1534 } } // namespace v8::internal |
| 1535 | 1535 |
| 1536 #endif // V8_ISOLATE_H_ | 1536 #endif // V8_ISOLATE_H_ |
| OLD | NEW |