Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Unified Diff: src/ic.cc

Issue 155419: Revert r2431. I don't think this is it. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic.cc
===================================================================
--- src/ic.cc (revision 2435)
+++ src/ic.cc (working copy)
@@ -38,17 +38,6 @@
namespace v8 {
namespace internal {
-// Temporary helper for working around http://crbug.com/16276. If we
-// allow 'the hole value' to leak into the IC code, it may lead to
-// crashes, but this should not happen and we should track down the
-// cause of it.
-static inline Handle<Object> UnholeForBug16276(Handle<Object> object) {
- if (!object->IsTheHole()) return object;
- ASSERT(false); // This should not happen.
- return Factory::undefined_value();
-}
-
-
#ifdef DEBUG
static char TransitionMarkFromState(IC::State state) {
switch (state) {
@@ -332,8 +321,6 @@
Object* CallIC::LoadFunction(State state,
Handle<Object> object,
Handle<String> name) {
- object = UnholeForBug16276(object);
-
// If the object is undefined or null it's illegal to try to get any
// of its properties; throw a TypeError in that case.
if (object->IsUndefined() || object->IsNull()) {
@@ -387,7 +374,7 @@
}
}
- ASSERT(!result->IsTheHole());
+ ASSERT(result != Heap::the_hole_value());
if (result->IsJSFunction()) {
// Check if there is an optimized (builtin) version of the function.
@@ -518,8 +505,6 @@
Object* LoadIC::Load(State state, Handle<Object> object, Handle<String> name) {
- object = UnholeForBug16276(object);
-
// If the object is undefined or null it's illegal to try to get any
// of its properties; throw a TypeError in that case.
if (object->IsUndefined() || object->IsNull()) {
@@ -732,8 +717,6 @@
Object* KeyedLoadIC::Load(State state,
Handle<Object> object,
Handle<Object> key) {
- object = UnholeForBug16276(object);
-
if (key->IsSymbol()) {
Handle<String> name = Handle<String>::cast(key);
@@ -959,8 +942,6 @@
Handle<Object> object,
Handle<String> name,
Handle<Object> value) {
- object = UnholeForBug16276(object);
-
// If the object is undefined or null it's illegal to try to set any
// properties on it; throw a TypeError in that case.
if (object->IsUndefined() || object->IsNull()) {
@@ -1079,13 +1060,11 @@
Handle<Object> object,
Handle<Object> key,
Handle<Object> value) {
- object = UnholeForBug16276(object);
-
if (key->IsSymbol()) {
Handle<String> name = Handle<String>::cast(key);
- // If the object is undefined or null it's illegal to try to set
- // any properties on it; throw a TypeError in that case.
+ // If the object is undefined or null it's illegal to try to set any
+ // properties on it; throw a TypeError in that case.
if (object->IsUndefined() || object->IsNull()) {
return TypeError("non_object_property_store", object, name);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698