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

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

Issue 23750008: build fix for 16858 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 | « no previous file | 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 19736 matching lines...) Expand 10 before | Expand all | Expand 10 after
19747 CHECK_EQ(NULL, isolate->GetData()); 19747 CHECK_EQ(NULL, isolate->GetData());
19748 CHECK_EQ(NULL, i_isolate->GetData()); 19748 CHECK_EQ(NULL, i_isolate->GetData());
19749 static void* data1 = reinterpret_cast<void*>(0xacce55ed); 19749 static void* data1 = reinterpret_cast<void*>(0xacce55ed);
19750 isolate->SetData(data1); 19750 isolate->SetData(data1);
19751 CHECK_EQ(data1, isolate->GetData()); 19751 CHECK_EQ(data1, isolate->GetData());
19752 CHECK_EQ(data1, i_isolate->GetData()); 19752 CHECK_EQ(data1, i_isolate->GetData());
19753 static void* data2 = reinterpret_cast<void*>(0xdecea5ed); 19753 static void* data2 = reinterpret_cast<void*>(0xdecea5ed);
19754 i_isolate->SetData(data2); 19754 i_isolate->SetData(data2);
19755 CHECK_EQ(data2, isolate->GetData()); 19755 CHECK_EQ(data2, isolate->GetData());
19756 CHECK_EQ(data2, i_isolate->GetData()); 19756 CHECK_EQ(data2, i_isolate->GetData());
19757 i_isolate->TearDown(); 19757 isolate->Exit();
19758 CHECK_EQ(data2, isolate->GetData()); 19758 isolate->Dispose();
19759 CHECK_EQ(data2, i_isolate->GetData());
19760 } 19759 }
19761 19760
19762 19761
19763 TEST(StringEmpty) { 19762 TEST(StringEmpty) {
19764 LocalContext context; 19763 LocalContext context;
19765 i::Factory* factory = CcTest::i_isolate()->factory(); 19764 i::Factory* factory = CcTest::i_isolate()->factory();
19766 v8::Isolate* isolate = CcTest::isolate(); 19765 v8::Isolate* isolate = CcTest::isolate();
19767 v8::HandleScope scope(isolate); 19766 v8::HandleScope scope(isolate);
19768 i::Handle<i::Object> empty_string = factory->empty_string(); 19767 i::Handle<i::Object> empty_string = factory->empty_string();
19769 CHECK(*v8::Utils::OpenHandle(*v8::String::Empty()) == *empty_string); 19768 CHECK(*v8::Utils::OpenHandle(*v8::String::Empty()) == *empty_string);
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
20597 Local<Object> data2 = v8::Object::New(); 20596 Local<Object> data2 = v8::Object::New();
20598 function_new_expected_env = data2; 20597 function_new_expected_env = data2;
20599 Local<Function> func2 = Function::New(isolate, FunctionNewCallback, data2); 20598 Local<Function> func2 = Function::New(isolate, FunctionNewCallback, data2);
20600 CHECK(!func2->IsNull()); 20599 CHECK(!func2->IsNull());
20601 CHECK_NE(func, func2); 20600 CHECK_NE(func, func2);
20602 env->Global()->Set(v8_str("func2"), func2); 20601 env->Global()->Set(v8_str("func2"), func2);
20603 Local<Value> result2 = CompileRun("func2();"); 20602 Local<Value> result2 = CompileRun("func2();");
20604 CHECK_EQ(v8::Integer::New(17, isolate), result2); 20603 CHECK_EQ(v8::Integer::New(17, isolate), result2);
20605 } 20604 }
20606 20605
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698