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 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1406 Handle<Context> context() { return context_; } | 1406 Handle<Context> context() { return context_; } |
1407 SaveContext* prev() { return prev_; } | 1407 SaveContext* prev() { return prev_; } |
1408 | 1408 |
1409 // Returns true if this save context is below a given JavaScript frame. | 1409 // Returns true if this save context is below a given JavaScript frame. |
1410 bool IsBelowFrame(JavaScriptFrame* frame) { | 1410 bool IsBelowFrame(JavaScriptFrame* frame) { |
1411 return (c_entry_fp_ == 0) || (c_entry_fp_ > frame->sp()); | 1411 return (c_entry_fp_ == 0) || (c_entry_fp_ > frame->sp()); |
1412 } | 1412 } |
1413 | 1413 |
1414 private: | 1414 private: |
1415 Handle<Context> context_; | 1415 Handle<Context> context_; |
1416 #if __GNUC_VERSION__ >= 40100 && __GNUC_VERSION__ < 40300 | 1416 #if V8_GNUC_PREREQ(4, 1) && !V8_GNUC_PREREQ(4, 3) |
1417 Handle<Context> dummy_; | 1417 Handle<Context> dummy_; |
1418 #endif | 1418 #endif |
1419 SaveContext* prev_; | 1419 SaveContext* prev_; |
1420 Address c_entry_fp_; | 1420 Address c_entry_fp_; |
1421 }; | 1421 }; |
1422 | 1422 |
1423 | 1423 |
1424 class AssertNoContextChange BASE_EMBEDDED { | 1424 class AssertNoContextChange BASE_EMBEDDED { |
1425 #ifdef DEBUG | 1425 #ifdef DEBUG |
1426 public: | 1426 public: |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1512 | 1512 |
1513 // Mark the native context with out of memory. | 1513 // Mark the native context with out of memory. |
1514 inline void Context::mark_out_of_memory() { | 1514 inline void Context::mark_out_of_memory() { |
1515 native_context()->set_out_of_memory(HEAP->true_value()); | 1515 native_context()->set_out_of_memory(HEAP->true_value()); |
1516 } | 1516 } |
1517 | 1517 |
1518 | 1518 |
1519 } } // namespace v8::internal | 1519 } } // namespace v8::internal |
1520 | 1520 |
1521 #endif // V8_ISOLATE_H_ | 1521 #endif // V8_ISOLATE_H_ |
OLD | NEW |