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

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

Issue 1129723003: Revert of Resolve references to "this" the same way as normal variables (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | test/mjsunit/debug-scopes.js » ('j') | 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-2010 the V8 project authors. All rights reserved. 1 // Copyright 2007-2010 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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 Handle<Object> root; 621 Handle<Object> root;
622 Handle<FixedArray> outdated_contexts; 622 Handle<FixedArray> outdated_contexts;
623 Handle<JSGlobalProxy> global_proxy = 623 Handle<JSGlobalProxy> global_proxy =
624 isolate->factory()->NewUninitializedJSGlobalProxy(); 624 isolate->factory()->NewUninitializedJSGlobalProxy();
625 { 625 {
626 SnapshotData snapshot_data(Vector<const byte>(snapshot, snapshot_size)); 626 SnapshotData snapshot_data(Vector<const byte>(snapshot, snapshot_size));
627 Deserializer deserializer(&snapshot_data); 627 Deserializer deserializer(&snapshot_data);
628 root = 628 root =
629 deserializer.DeserializePartial(isolate, global_proxy, 629 deserializer.DeserializePartial(isolate, global_proxy,
630 &outdated_contexts).ToHandleChecked(); 630 &outdated_contexts).ToHandleChecked();
631 CHECK_EQ(3, outdated_contexts->length()); 631 CHECK_EQ(2, outdated_contexts->length());
632 CHECK(root->IsContext()); 632 CHECK(root->IsContext());
633 Handle<Context> context = Handle<Context>::cast(root); 633 Handle<Context> context = Handle<Context>::cast(root);
634 CHECK(context->global_proxy() == *global_proxy); 634 CHECK(context->global_proxy() == *global_proxy);
635 Handle<String> o = isolate->factory()->NewStringFromAsciiChecked("o"); 635 Handle<String> o = isolate->factory()->NewStringFromAsciiChecked("o");
636 Handle<JSObject> global_object(context->global_object(), isolate); 636 Handle<JSObject> global_object(context->global_object(), isolate);
637 Handle<Object> property = JSObject::GetDataProperty(global_object, o); 637 Handle<Object> property = JSObject::GetDataProperty(global_object, o);
638 CHECK(property.is_identical_to(global_proxy)); 638 CHECK(property.is_identical_to(global_proxy));
639 639
640 v8::Handle<v8::Context> v8_context = v8::Utils::ToLocal(context); 640 v8::Handle<v8::Context> v8_context = v8::Utils::ToLocal(context);
641 v8::Context::Scope context_scope(v8_context); 641 v8::Context::Scope context_scope(v8_context);
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
1569 isolate->Dispose(); 1569 isolate->Dispose();
1570 } 1570 }
1571 1571
1572 1572
1573 TEST(SerializationMemoryStats) { 1573 TEST(SerializationMemoryStats) {
1574 FLAG_profile_deserialization = true; 1574 FLAG_profile_deserialization = true;
1575 FLAG_always_opt = false; 1575 FLAG_always_opt = false;
1576 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob(); 1576 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob();
1577 delete[] blob.data; 1577 delete[] blob.data;
1578 } 1578 }
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | test/mjsunit/debug-scopes.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698