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

Unified Diff: test/cctest/test-accessors.cc

Issue 178223011: Reset trunk to 3.24.35.4 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 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 | « test/cctest/cctest.status ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-accessors.cc
diff --git a/test/cctest/test-accessors.cc b/test/cctest/test-accessors.cc
index daafb244e3d1f731c81f4116519281272f1f935f..bda09f01a0ed4380ed0cfab93fed12f477c14580 100644
--- a/test/cctest/test-accessors.cc
+++ b/test/cctest/test-accessors.cc
@@ -174,7 +174,6 @@ static void XSetter(Local<Value> value, const Info& info, int offset) {
CHECK_EQ(x_holder, info.This());
CHECK_EQ(x_holder, info.Holder());
x_register[offset] = value->Int32Value();
- info.GetReturnValue().Set(v8_num(-1));
}
@@ -211,20 +210,20 @@ THREADED_TEST(AccessorIC) {
"var key_1 = 'x1';"
"for (var j = 0; j < 10; j++) {"
" var i = 4*j;"
- " result.push(holder.x0 = i);"
+ " holder.x0 = i;"
" result.push(obj.x0);"
- " result.push(holder.x1 = i + 1);"
+ " holder.x1 = i + 1;"
" result.push(obj.x1);"
- " result.push(holder[key_0] = i + 2);"
+ " holder[key_0] = i + 2;"
" result.push(obj[key_0]);"
- " result.push(holder[key_1] = i + 3);"
+ " holder[key_1] = i + 3;"
" result.push(obj[key_1]);"
"}"
"result"));
- CHECK_EQ(80, array->Length());
- for (int i = 0; i < 80; i++) {
+ CHECK_EQ(40, array->Length());
+ for (int i = 0; i < 40; i++) {
v8::Handle<Value> entry = array->Get(v8::Integer::New(isolate, i));
- CHECK_EQ(v8::Integer::New(isolate, i/2), entry);
+ CHECK_EQ(v8::Integer::New(isolate, i), entry);
}
}
« no previous file with comments | « test/cctest/cctest.status ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698