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

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

Issue 15129002: stop using AsciiValue (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: adding deprecation notice 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
« no previous file with comments | « test/cctest/test-heap-profiler.cc ('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 2007-2011 the V8 project authors. All rights reserved. 1 // Copyright 2007-2011 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 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 v8::Isolate* isolate = v8::Isolate::New(); 641 v8::Isolate* isolate = v8::Isolate::New();
642 { 642 {
643 v8::Locker lock(isolate); 643 v8::Locker lock(isolate);
644 v8::Isolate::Scope isolate_scope(isolate); 644 v8::Isolate::Scope isolate_scope(isolate);
645 v8::HandleScope handle_scope(isolate); 645 v8::HandleScope handle_scope(isolate);
646 v8::Handle<Context> context = v8::Context::New(isolate); 646 v8::Handle<Context> context = v8::Context::New(isolate);
647 v8::Context::Scope context_scope(context); 647 v8::Context::Scope context_scope(context);
648 v8::Handle<String> source = v8::String::New("1+1"); 648 v8::Handle<String> source = v8::String::New("1+1");
649 v8::Handle<Script> script = v8::Script::Compile(source); 649 v8::Handle<Script> script = v8::Script::Compile(source);
650 v8::Handle<Value> result = script->Run(); 650 v8::Handle<Value> result = script->Run();
651 v8::String::AsciiValue ascii(result); 651 v8::String::Utf8Value utf8(result);
652 } 652 }
653 isolate->Dispose(); 653 isolate->Dispose();
654 } 654 }
655 } 655 }
656 656
657 657
658 static const char* kSimpleExtensionSource = 658 static const char* kSimpleExtensionSource =
659 "(function Foo() {" 659 "(function Foo() {"
660 " return 4;" 660 " return 4;"
661 "})() "; 661 "})() ";
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 kSimpleExtensionSource)); 711 kSimpleExtensionSource));
712 const char* extension_names[] = { "test0", "test1", 712 const char* extension_names[] = { "test0", "test1",
713 "test2", "test3", "test4", 713 "test2", "test3", "test4",
714 "test5", "test6", "test7" }; 714 "test5", "test6", "test7" };
715 i::List<JoinableThread*> threads(kNThreads); 715 i::List<JoinableThread*> threads(kNThreads);
716 for (int i = 0; i < kNThreads; i++) { 716 for (int i = 0; i < kNThreads; i++) {
717 threads.Add(new IsolateGenesisThread(8, extension_names)); 717 threads.Add(new IsolateGenesisThread(8, extension_names));
718 } 718 }
719 StartJoinAndDeleteThreads(threads); 719 StartJoinAndDeleteThreads(threads);
720 } 720 }
OLDNEW
« no previous file with comments | « test/cctest/test-heap-profiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698