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

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

Issue 16409011: build fix for build fix for 14990 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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 | « include/v8.h ('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 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 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 return scope.Close(CompileRun("callback_object.callback()")); 1092 return scope.Close(CompileRun("callback_object.callback()"));
1093 } 1093 }
1094 1094
1095 THREADED_TEST(FastReturnValues) { 1095 THREADED_TEST(FastReturnValues) {
1096 LocalContext env; 1096 LocalContext env;
1097 v8::HandleScope scope(v8::Isolate::GetCurrent()); 1097 v8::HandleScope scope(v8::Isolate::GetCurrent());
1098 v8::Handle<v8::Value> value; 1098 v8::Handle<v8::Value> value;
1099 // check int32_t and uint32_t 1099 // check int32_t and uint32_t
1100 int32_t int_values[] = { 1100 int32_t int_values[] = {
1101 0, 234, -723, 1101 0, 234, -723,
1102 i::Smi::kMinValue, i::Smi::kMaxValue, INT32_MAX, INT32_MIN 1102 i::Smi::kMinValue, i::Smi::kMaxValue
1103 }; 1103 };
1104 for (size_t i = 0; i < ARRAY_SIZE(int_values); i++) { 1104 for (size_t i = 0; i < ARRAY_SIZE(int_values); i++) {
1105 for (int modifier = -1; modifier <= 1; modifier++) { 1105 for (int modifier = -1; modifier <= 1; modifier++) {
1106 int int_value = int_values[i] + modifier; 1106 int int_value = int_values[i] + modifier;
1107 // check int32_t 1107 // check int32_t
1108 fast_return_value_int32 = int_value; 1108 fast_return_value_int32 = int_value;
1109 value = TestFastReturnValues<int32_t>(); 1109 value = TestFastReturnValues<int32_t>();
1110 CHECK(value->IsInt32()); 1110 CHECK(value->IsInt32());
1111 CHECK(fast_return_value_int32 == value->Int32Value()); 1111 CHECK(fast_return_value_int32 == value->Int32Value());
1112 // check uint32_t 1112 // check uint32_t
(...skipping 18053 matching lines...) Expand 10 before | Expand all | Expand 10 after
19166 i::Semaphore* sem_; 19166 i::Semaphore* sem_;
19167 volatile int sem_value_; 19167 volatile int sem_value_;
19168 }; 19168 };
19169 19169
19170 19170
19171 THREADED_TEST(SemaphoreInterruption) { 19171 THREADED_TEST(SemaphoreInterruption) {
19172 ThreadInterruptTest().RunTest(); 19172 ThreadInterruptTest().RunTest();
19173 } 19173 }
19174 19174
19175 #endif // WIN32 19175 #endif // WIN32
OLDNEW
« no previous file with comments | « include/v8.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698