Index: src/assembler.cc |
=================================================================== |
--- src/assembler.cc (revision 1738) |
+++ src/assembler.cc (working copy) |
@@ -521,11 +521,11 @@ |
ExternalReference::ExternalReference(const IC_Utility& ic_utility) |
: address_(ic_utility.address()) {} |
- |
+#ifdef ENABLE_DEBUGGER_SUPPORT |
ExternalReference::ExternalReference(const Debug_Address& debug_address) |
: address_(debug_address.address()) {} |
+#endif |
- |
ExternalReference::ExternalReference(StatsCounter* counter) |
: address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {} |
@@ -557,32 +557,26 @@ |
} |
-ExternalReference ExternalReference::debug_break() { |
- return ExternalReference(FUNCTION_ADDR(Debug::Break)); |
-} |
- |
- |
ExternalReference ExternalReference::new_space_start() { |
return ExternalReference(Heap::NewSpaceStart()); |
} |
+ |
ExternalReference ExternalReference::new_space_allocation_top_address() { |
return ExternalReference(Heap::NewSpaceAllocationTopAddress()); |
} |
+ |
ExternalReference ExternalReference::heap_always_allocate_scope_depth() { |
return ExternalReference(Heap::always_allocate_scope_depth_address()); |
} |
+ |
ExternalReference ExternalReference::new_space_allocation_limit_address() { |
return ExternalReference(Heap::NewSpaceAllocationLimitAddress()); |
} |
-ExternalReference ExternalReference::debug_step_in_fp_address() { |
- return ExternalReference(Debug::step_in_fp_addr()); |
-} |
- |
static double add_two_doubles(double x, double y) { |
return x + y; |
} |
@@ -618,4 +612,16 @@ |
return ExternalReference(FUNCTION_ADDR(function)); |
} |
+ |
+#ifdef ENABLE_DEBUGGER_SUPPORT |
+ExternalReference ExternalReference::debug_break() { |
+ return ExternalReference(FUNCTION_ADDR(Debug::Break)); |
+} |
+ |
+ |
+ExternalReference ExternalReference::debug_step_in_fp_address() { |
+ return ExternalReference(Debug::step_in_fp_addr()); |
+} |
+#endif |
+ |
} } // namespace v8::internal |