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

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

Issue 2175193003: Remove NaCl support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 years, 4 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/v8.gyp ('k') | test/unittests/base/sys-info-unittest.cc » ('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 22158 matching lines...) Expand 10 before | Expand all | Expand 10 after
22169 v8::JSON::Parse(context.local(), v8_str("{\"x\":42}")).ToLocalChecked(); 22169 v8::JSON::Parse(context.local(), v8_str("{\"x\":42}")).ToLocalChecked();
22170 Local<Object> obj = value->ToObject(context.local()).ToLocalChecked(); 22170 Local<Object> obj = value->ToObject(context.local()).ToLocalChecked();
22171 Local<Object> global = context->Global(); 22171 Local<Object> global = context->Global();
22172 global->Set(context.local(), v8_str("obj"), obj).FromJust(); 22172 global->Set(context.local(), v8_str("obj"), obj).FromJust();
22173 Local<String> json = 22173 Local<String> json =
22174 v8::JSON::Stringify(context.local(), obj, v8_str("*")).ToLocalChecked(); 22174 v8::JSON::Stringify(context.local(), obj, v8_str("*")).ToLocalChecked();
22175 v8::String::Utf8Value utf8(json); 22175 v8::String::Utf8Value utf8(json);
22176 ExpectString("JSON.stringify(obj, null, '*')", *utf8); 22176 ExpectString("JSON.stringify(obj, null, '*')", *utf8);
22177 } 22177 }
22178 22178
22179 #if V8_OS_POSIX && !V8_OS_NACL 22179 #if V8_OS_POSIX
22180 class ThreadInterruptTest { 22180 class ThreadInterruptTest {
22181 public: 22181 public:
22182 ThreadInterruptTest() : sem_(0), sem_value_(0) { } 22182 ThreadInterruptTest() : sem_(0), sem_value_(0) { }
22183 ~ThreadInterruptTest() {} 22183 ~ThreadInterruptTest() {}
22184 22184
22185 void RunTest() { 22185 void RunTest() {
22186 InterruptThread i_thread(this); 22186 InterruptThread i_thread(this);
22187 i_thread.Start(); 22187 i_thread.Start();
22188 22188
22189 sem_.Wait(); 22189 sem_.Wait();
(...skipping 3263 matching lines...) Expand 10 before | Expand all | Expand 10 after
25453 25453
25454 // Put the function into context1 and call it. Since the access check 25454 // Put the function into context1 and call it. Since the access check
25455 // callback always returns true, the call succeeds even though the tokens 25455 // callback always returns true, the call succeeds even though the tokens
25456 // are different. 25456 // are different.
25457 context1->Enter(); 25457 context1->Enter();
25458 context1->Global()->Set(context1, v8_str("fun"), fun).FromJust(); 25458 context1->Global()->Set(context1, v8_str("fun"), fun).FromJust();
25459 v8::Local<v8::Value> x_value = CompileRun("fun('x')"); 25459 v8::Local<v8::Value> x_value = CompileRun("fun('x')");
25460 CHECK_EQ(42, x_value->Int32Value(context1).FromJust()); 25460 CHECK_EQ(42, x_value->Int32Value(context1).FromJust());
25461 context1->Exit(); 25461 context1->Exit();
25462 } 25462 }
OLDNEW
« no previous file with comments | « src/v8.gyp ('k') | test/unittests/base/sys-info-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698