| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 return mode == CODE_AGE_SEQUENCE; | 365 return mode == CODE_AGE_SEQUENCE; |
| 366 } | 366 } |
| 367 static inline int ModeMask(Mode mode) { return 1 << mode; } | 367 static inline int ModeMask(Mode mode) { return 1 << mode; } |
| 368 | 368 |
| 369 // Accessors | 369 // Accessors |
| 370 byte* pc() const { return pc_; } | 370 byte* pc() const { return pc_; } |
| 371 void set_pc(byte* pc) { pc_ = pc; } | 371 void set_pc(byte* pc) { pc_ = pc; } |
| 372 Mode rmode() const { return rmode_; } | 372 Mode rmode() const { return rmode_; } |
| 373 intptr_t data() const { return data_; } | 373 intptr_t data() const { return data_; } |
| 374 double data64() const { return data64_; } | 374 double data64() const { return data64_; } |
| 375 uint64_t raw_data64() { |
| 376 return BitCast<uint64_t>(data64_); |
| 377 } |
| 375 Code* host() const { return host_; } | 378 Code* host() const { return host_; } |
| 376 | 379 |
| 377 // Apply a relocation by delta bytes | 380 // Apply a relocation by delta bytes |
| 378 INLINE(void apply(intptr_t delta)); | 381 INLINE(void apply(intptr_t delta)); |
| 379 | 382 |
| 380 // Is the pointer this relocation info refers to coded like a plain pointer | 383 // Is the pointer this relocation info refers to coded like a plain pointer |
| 381 // or is it strange in some way (e.g. relative or patched into a series of | 384 // or is it strange in some way (e.g. relative or patched into a series of |
| 382 // instructions). | 385 // instructions). |
| 383 bool IsCodedSpecially(); | 386 bool IsCodedSpecially(); |
| 384 | 387 |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 // ExternalReferenceTable in serialize.cc manually. | 711 // ExternalReferenceTable in serialize.cc manually. |
| 709 | 712 |
| 710 static ExternalReference incremental_marking_record_write_function( | 713 static ExternalReference incremental_marking_record_write_function( |
| 711 Isolate* isolate); | 714 Isolate* isolate); |
| 712 static ExternalReference incremental_evacuation_record_write_function( | 715 static ExternalReference incremental_evacuation_record_write_function( |
| 713 Isolate* isolate); | 716 Isolate* isolate); |
| 714 static ExternalReference store_buffer_overflow_function( | 717 static ExternalReference store_buffer_overflow_function( |
| 715 Isolate* isolate); | 718 Isolate* isolate); |
| 716 static ExternalReference flush_icache_function(Isolate* isolate); | 719 static ExternalReference flush_icache_function(Isolate* isolate); |
| 717 static ExternalReference perform_gc_function(Isolate* isolate); | 720 static ExternalReference perform_gc_function(Isolate* isolate); |
| 718 static ExternalReference random_uint32_function(Isolate* isolate); | |
| 719 static ExternalReference transcendental_cache_array_address(Isolate* isolate); | 721 static ExternalReference transcendental_cache_array_address(Isolate* isolate); |
| 720 static ExternalReference delete_handle_scope_extensions(Isolate* isolate); | 722 static ExternalReference delete_handle_scope_extensions(Isolate* isolate); |
| 721 | 723 |
| 722 static ExternalReference get_date_field_function(Isolate* isolate); | 724 static ExternalReference get_date_field_function(Isolate* isolate); |
| 723 static ExternalReference date_cache_stamp(Isolate* isolate); | 725 static ExternalReference date_cache_stamp(Isolate* isolate); |
| 724 | 726 |
| 725 static ExternalReference get_make_code_young_function(Isolate* isolate); | 727 static ExternalReference get_make_code_young_function(Isolate* isolate); |
| 726 static ExternalReference get_mark_code_as_executed_function(Isolate* isolate); | 728 static ExternalReference get_mark_code_as_executed_function(Isolate* isolate); |
| 727 | 729 |
| 728 // Deoptimization support. | 730 // Deoptimization support. |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1066 public: | 1068 public: |
| 1067 NullCallWrapper() { } | 1069 NullCallWrapper() { } |
| 1068 virtual ~NullCallWrapper() { } | 1070 virtual ~NullCallWrapper() { } |
| 1069 virtual void BeforeCall(int call_size) const { } | 1071 virtual void BeforeCall(int call_size) const { } |
| 1070 virtual void AfterCall() const { } | 1072 virtual void AfterCall() const { } |
| 1071 }; | 1073 }; |
| 1072 | 1074 |
| 1073 } } // namespace v8::internal | 1075 } } // namespace v8::internal |
| 1074 | 1076 |
| 1075 #endif // V8_ASSEMBLER_H_ | 1077 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |