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

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

Issue 10837165: Lattice-based representation inference, powered by left/right specific type feedback for BinaryOps … (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback; fixed tests Created 8 years, 1 month 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/lithium-x64.cc ('k') | test/mjsunit/math-floor-of-div-minus-zero.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 11258 matching lines...) Expand 10 before | Expand all | Expand 10 after
11269 "bar();"); 11269 "bar();");
11270 CHECK(value->IsNumber()); 11270 CHECK(value->IsNumber());
11271 CHECK_EQ(9801.0, v8::Number::Cast(*value)->Value()); 11271 CHECK_EQ(9801.0, v8::Number::Cast(*value)->Value());
11272 11272
11273 env->Exit(); 11273 env->Exit();
11274 } 11274 }
11275 11275
11276 11276
11277 TEST(SetFunctionEntryHook) { 11277 TEST(SetFunctionEntryHook) {
11278 i::FLAG_allow_natives_syntax = true; 11278 i::FLAG_allow_natives_syntax = true;
11279 i::FLAG_use_inlining = false;
11279 11280
11280 // Test setting and resetting the entry hook. 11281 // Test setting and resetting the entry hook.
11281 // Nulling it should always succeed. 11282 // Nulling it should always succeed.
11282 CHECK(v8::V8::SetFunctionEntryHook(NULL)); 11283 CHECK(v8::V8::SetFunctionEntryHook(NULL));
11283 11284
11284 CHECK(v8::V8::SetFunctionEntryHook(entry_hook)); 11285 CHECK(v8::V8::SetFunctionEntryHook(entry_hook));
11285 // Setting a hook while one's active should fail. 11286 // Setting a hook while one's active should fail.
11286 CHECK_EQ(false, v8::V8::SetFunctionEntryHook(entry_hook)); 11287 CHECK_EQ(false, v8::V8::SetFunctionEntryHook(entry_hook));
11287 11288
11288 CHECK(v8::V8::SetFunctionEntryHook(NULL)); 11289 CHECK(v8::V8::SetFunctionEntryHook(NULL));
(...skipping 6610 matching lines...) Expand 10 before | Expand all | Expand 10 after
17899 17900
17900 i::Semaphore* sem_; 17901 i::Semaphore* sem_;
17901 volatile int sem_value_; 17902 volatile int sem_value_;
17902 }; 17903 };
17903 17904
17904 17905
17905 THREADED_TEST(SemaphoreInterruption) { 17906 THREADED_TEST(SemaphoreInterruption) {
17906 ThreadInterruptTest().RunTest(); 17907 ThreadInterruptTest().RunTest();
17907 } 17908 }
17908 #endif // WIN32 17909 #endif // WIN32
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | test/mjsunit/math-floor-of-div-minus-zero.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698