Improved handling of relocation information to enable more peep-hole optimizations.

Optimized switch statements where all labels are constant small integers.

Optimized String.prototype.indexOf for common cases.

Fixed more build issues (issue 80).

Fixed a couple of profiler issues.

Fixed bug where the body of a function created using the Function constructor was not allowed to end with a single-line comment (issue 85).

Improved handling of object literals by canonicalizing object literal maps.  This will allow JSON objects with the same set of properties to share the same map making inline caching work better for JSON objects.



git-svn-id: http://v8.googlecode.com/svn/trunk@373 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/src/debug.h b/src/debug.h
index 23b0ff2..52e8a98 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -97,11 +97,13 @@
   inline Address pc() { return reloc_iterator_->rinfo()->pc(); }
   inline Code* code() { return debug_info_->code(); }
   inline RelocInfo* rinfo() { return reloc_iterator_->rinfo(); }
-  inline RelocMode rmode() const { return reloc_iterator_->rinfo()->rmode(); }
+  inline RelocInfo::Mode rmode() const {
+    return reloc_iterator_->rinfo()->rmode();
+  }
   inline RelocInfo* original_rinfo() {
     return reloc_iterator_original_->rinfo();
   }
-  inline RelocMode original_rmode() const {
+  inline RelocInfo::Mode original_rmode() const {
     return reloc_iterator_original_->rinfo()->rmode();
   }