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

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

Issue 14146005: Track representations of fields (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add test for tracking fields Created 7 years, 8 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
« no previous file with comments | « src/x64/stub-cache-x64.cc ('k') | test/mjsunit/elements-transition-hoisting.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 15861 matching lines...) Expand 10 before | Expand all | Expand 10 after
15872 15872
15873 script = v8::Script::Compile(v8_str("new C2();")); 15873 script = v8::Script::Compile(v8_str("new C2();"));
15874 for (int i = 0; i < 10; i++) { 15874 for (int i = 0; i < 10; i++) {
15875 v8::Handle<v8::Object> c2 = v8::Handle<v8::Object>::Cast(script->Run()); 15875 v8::Handle<v8::Object> c2 = v8::Handle<v8::Object>::Cast(script->Run());
15876 CHECK_EQ(23, c2->Get(v8_str("x"))->Int32Value()); 15876 CHECK_EQ(23, c2->Get(v8_str("x"))->Int32Value());
15877 CHECK_EQ(42, c2->Get(v8_str("y"))->Int32Value()); 15877 CHECK_EQ(42, c2->Get(v8_str("y"))->Int32Value());
15878 } 15878 }
15879 } 15879 }
15880 15880
15881 15881
15882 TEST(Bug618) { 15882 TEST(Regress618) {
15883 const char* source = "function C1() {" 15883 const char* source = "function C1() {"
15884 " this.x = 23;" 15884 " this.x = 23;"
15885 "};" 15885 "};"
15886 "C1.prototype = P;"; 15886 "C1.prototype = P;";
15887 15887
15888 LocalContext context; 15888 LocalContext context;
15889 v8::HandleScope scope(context->GetIsolate()); 15889 v8::HandleScope scope(context->GetIsolate());
15890 v8::Local<v8::Script> script; 15890 v8::Local<v8::Script> script;
15891 15891
15892 // Use a simple object as prototype. 15892 // Use a simple object as prototype.
(...skipping 2501 matching lines...) Expand 10 before | Expand all | Expand 10 after
18394 i::Semaphore* sem_; 18394 i::Semaphore* sem_;
18395 volatile int sem_value_; 18395 volatile int sem_value_;
18396 }; 18396 };
18397 18397
18398 18398
18399 THREADED_TEST(SemaphoreInterruption) { 18399 THREADED_TEST(SemaphoreInterruption) {
18400 ThreadInterruptTest().RunTest(); 18400 ThreadInterruptTest().RunTest();
18401 } 18401 }
18402 18402
18403 #endif // WIN32 18403 #endif // WIN32
OLDNEW
« no previous file with comments | « src/x64/stub-cache-x64.cc ('k') | test/mjsunit/elements-transition-hoisting.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698