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 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1399 Handle<Context> context() { return context_; } | 1399 Handle<Context> context() { return context_; } |
1400 SaveContext* prev() { return prev_; } | 1400 SaveContext* prev() { return prev_; } |
1401 | 1401 |
1402 // Returns true if this save context is below a given JavaScript frame. | 1402 // Returns true if this save context is below a given JavaScript frame. |
1403 bool IsBelowFrame(JavaScriptFrame* frame) { | 1403 bool IsBelowFrame(JavaScriptFrame* frame) { |
1404 return (c_entry_fp_ == 0) || (c_entry_fp_ > frame->sp()); | 1404 return (c_entry_fp_ == 0) || (c_entry_fp_ > frame->sp()); |
1405 } | 1405 } |
1406 | 1406 |
1407 private: | 1407 private: |
1408 Handle<Context> context_; | 1408 Handle<Context> context_; |
1409 #if __GNUC_VERSION__ >= 40100 && __GNUC_VERSION__ < 40300 | |
1410 Handle<Context> dummy_; | |
1411 #endif | |
1412 SaveContext* prev_; | 1409 SaveContext* prev_; |
1413 Address c_entry_fp_; | 1410 Address c_entry_fp_; |
1414 }; | 1411 }; |
1415 | 1412 |
1416 | 1413 |
1417 class AssertNoContextChange BASE_EMBEDDED { | 1414 class AssertNoContextChange BASE_EMBEDDED { |
1418 #ifdef DEBUG | 1415 #ifdef DEBUG |
1419 public: | 1416 public: |
1420 AssertNoContextChange() : | 1417 AssertNoContextChange() : |
1421 scope_(Isolate::Current()), | 1418 scope_(Isolate::Current()), |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1505 | 1502 |
1506 // Mark the native context with out of memory. | 1503 // Mark the native context with out of memory. |
1507 inline void Context::mark_out_of_memory() { | 1504 inline void Context::mark_out_of_memory() { |
1508 native_context()->set_out_of_memory(HEAP->true_value()); | 1505 native_context()->set_out_of_memory(HEAP->true_value()); |
1509 } | 1506 } |
1510 | 1507 |
1511 | 1508 |
1512 } } // namespace v8::internal | 1509 } } // namespace v8::internal |
1513 | 1510 |
1514 #endif // V8_ISOLATE_H_ | 1511 #endif // V8_ISOLATE_H_ |
OLD | NEW |