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

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

Issue 15059009: Enable native implementation of array buffer and typed arrays in d8 and tests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
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 12039 matching lines...) Expand 10 before | Expand all | Expand 10 after
12050 value = CompileRun("%OptimizeFunctionOnNextCall(foo);" 12050 value = CompileRun("%OptimizeFunctionOnNextCall(foo);"
12051 "bar();"); 12051 "bar();");
12052 CHECK(value->IsNumber()); 12052 CHECK(value->IsNumber());
12053 CHECK_EQ(9801.0, v8::Number::Cast(*value)->Value()); 12053 CHECK_EQ(9801.0, v8::Number::Cast(*value)->Value());
12054 12054
12055 env->Exit(); 12055 env->Exit();
12056 } 12056 }
12057 12057
12058 12058
12059 TEST(SetFunctionEntryHook) { 12059 TEST(SetFunctionEntryHook) {
12060 // FunctionEntryHook does not work well with experimental natives.
Michael Starzinger 2013/05/13 13:58:42 Can we make this comments more specific as to what
12061 i::FLAG_harmony_typed_arrays = false;
12062 i::FLAG_harmony_array_buffer = false;
12063
12060 i::FLAG_allow_natives_syntax = true; 12064 i::FLAG_allow_natives_syntax = true;
12061 i::FLAG_use_inlining = false; 12065 i::FLAG_use_inlining = false;
12062 12066
12063 // Test setting and resetting the entry hook. 12067 // Test setting and resetting the entry hook.
12064 // Nulling it should always succeed. 12068 // Nulling it should always succeed.
12065 CHECK(v8::V8::SetFunctionEntryHook(NULL)); 12069 CHECK(v8::V8::SetFunctionEntryHook(NULL));
12066 12070
12067 CHECK(v8::V8::SetFunctionEntryHook(entry_hook)); 12071 CHECK(v8::V8::SetFunctionEntryHook(entry_hook));
12068 // Setting a hook while one's active should fail. 12072 // Setting a hook while one's active should fail.
12069 CHECK_EQ(false, v8::V8::SetFunctionEntryHook(entry_hook)); 12073 CHECK_EQ(false, v8::V8::SetFunctionEntryHook(entry_hook));
(...skipping 6879 matching lines...) Expand 10 before | Expand all | Expand 10 after
18949 i::Semaphore* sem_; 18953 i::Semaphore* sem_;
18950 volatile int sem_value_; 18954 volatile int sem_value_;
18951 }; 18955 };
18952 18956
18953 18957
18954 THREADED_TEST(SemaphoreInterruption) { 18958 THREADED_TEST(SemaphoreInterruption) {
18955 ThreadInterruptTest().RunTest(); 18959 ThreadInterruptTest().RunTest();
18956 } 18960 }
18957 18961
18958 #endif // WIN32 18962 #endif // WIN32
OLDNEW
« no previous file with comments | « test/cctest/cctest.cc ('k') | test/cctest/test-heap.cc » ('j') | test/cctest/test-heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698