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

Side by Side Diff: test/cctest/test-api.cc

Issue 597069: Partial snapshots now working for new context creation. Passes V8 tests.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: Created 10 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 unified diff | Download patch | Annotate | Revision Log
« src/bootstrapper.cc ('K') | « src/handles.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2007-2009 the V8 project authors. All rights reserved. 1 // Copyright 2007-2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 4079 matching lines...) Expand 10 before | Expand all | Expand 10 after
4090 value = v8_compile("other.blocked_prop")->Run(); 4090 value = v8_compile("other.blocked_prop")->Run();
4091 CHECK(value->IsUndefined()); 4091 CHECK(value->IsUndefined());
4092 4092
4093 value = v8_compile("propertyIsEnumerable.call(other, 'blocked_prop')")->Run(); 4093 value = v8_compile("propertyIsEnumerable.call(other, 'blocked_prop')")->Run();
4094 CHECK(value->IsFalse()); 4094 CHECK(value->IsFalse());
4095 4095
4096 // Access accessible property 4096 // Access accessible property
4097 value = v8_compile("other.accessible_prop = 3")->Run(); 4097 value = v8_compile("other.accessible_prop = 3")->Run();
4098 CHECK(value->IsNumber()); 4098 CHECK(value->IsNumber());
4099 CHECK_EQ(3, value->Int32Value()); 4099 CHECK_EQ(3, value->Int32Value());
4100 CHECK_EQ(3, g_echo_value);
4100 4101
4101 value = v8_compile("other.accessible_prop")->Run(); 4102 value = v8_compile("other.accessible_prop")->Run();
4102 CHECK(value->IsNumber()); 4103 CHECK(value->IsNumber());
4103 CHECK_EQ(3, value->Int32Value()); 4104 CHECK_EQ(3, value->Int32Value());
4104 4105
4105 value = 4106 value =
4106 v8_compile("propertyIsEnumerable.call(other, 'accessible_prop')")->Run(); 4107 v8_compile("propertyIsEnumerable.call(other, 'accessible_prop')")->Run();
4107 CHECK(value->IsTrue()); 4108 CHECK(value->IsTrue());
4108 4109
4109 // Enumeration doesn't enumerate accessors from inaccessible objects in 4110 // Enumeration doesn't enumerate accessors from inaccessible objects in
(...skipping 4712 matching lines...) Expand 10 before | Expand all | Expand 10 after
8822 CompileRun(source_exception); 8823 CompileRun(source_exception);
8823 other_context->Exit(); 8824 other_context->Exit();
8824 v8::internal::Heap::CollectAllGarbage(false); 8825 v8::internal::Heap::CollectAllGarbage(false);
8825 if (GetGlobalObjectsCount() == 1) break; 8826 if (GetGlobalObjectsCount() == 1) break;
8826 } 8827 }
8827 CHECK_GE(2, gc_count); 8828 CHECK_GE(2, gc_count);
8828 CHECK_EQ(1, GetGlobalObjectsCount()); 8829 CHECK_EQ(1, GetGlobalObjectsCount());
8829 8830
8830 other_context.Dispose(); 8831 other_context.Dispose();
8831 } 8832 }
OLDNEW
« src/bootstrapper.cc ('K') | « src/handles.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698