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

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

Issue 936813002: Contribution of PowerPC port (continuation of 422063005) - PPC dir update 2 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | « src/serialize.cc ('k') | test/mjsunit/strong/use-before-var.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index 5b11386d47c72f0bae3d5857b1e1996a139ace95..adc7c0921693934bd42eab414a7a18fa655b1835 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -1937,8 +1937,6 @@ THREADED_TEST(ExecutableAccessorIsPreservedOnAttributeChange) {
CompileRun("Object.defineProperty(a, 'length', { writable: false });");
CHECK_EQ(i::FixedArray::cast(a->map()->instance_descriptors())->length(), 0);
// But we should still have an ExecutableAccessorInfo.
- i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
- i::LookupResult lookup(i_isolate);
i::Handle<i::String> name(v8::Utils::OpenHandle(*v8_str("length")));
i::LookupIterator it(a, name, i::LookupIterator::OWN_SKIP_INTERCEPTOR);
CHECK_EQ(i::LookupIterator::ACCESSOR, it.state());
@@ -12313,14 +12311,14 @@ UNINITIALIZED_TEST(SetJitCodeEventHandler) {
i::FLAG_incremental_marking = false;
if (i::FLAG_never_compact) return;
const char* script =
- "function bar() {"
- " var sum = 0;"
- " for (i = 0; i < 100; ++i)"
- " sum = foo(i);"
- " return sum;"
- "}"
- "function foo(i) { return i * i; };"
- "bar();";
+ "function bar() {"
+ " var sum = 0;"
+ " for (i = 0; i < 10; ++i)"
+ " sum = foo(i);"
+ " return sum;"
+ "}"
+ "function foo(i) { return i; };"
+ "bar();";
// Run this test in a new isolate to make sure we don't
// have remnants of state from other code.
« no previous file with comments | « src/serialize.cc ('k') | test/mjsunit/strong/use-before-var.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698