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

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

Issue 559913002: Rename ascii to one-byte where applicable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void TestSetter( 117 void TestSetter(
118 v8::Local<v8::Name> name, 118 v8::Local<v8::Name> name,
119 v8::Local<v8::Value> value, 119 v8::Local<v8::Value> value,
120 const v8::PropertyCallbackInfo<void>& info) { 120 const v8::PropertyCallbackInfo<void>& info) {
121 UNREACHABLE(); 121 UNREACHABLE();
122 } 122 }
123 123
124 124
125 Handle<AccessorInfo> TestAccessorInfo( 125 Handle<AccessorInfo> TestAccessorInfo(
126 Isolate* isolate, PropertyAttributes attributes) { 126 Isolate* isolate, PropertyAttributes attributes) {
127 Handle<String> name = isolate->factory()->NewStringFromStaticAscii("get"); 127 Handle<String> name = isolate->factory()->NewStringFromStaticChars("get");
128 return Accessors::MakeAccessor(isolate, name, &TestGetter, &TestSetter, 128 return Accessors::MakeAccessor(isolate, name, &TestGetter, &TestSetter,
129 attributes); 129 attributes);
130 } 130 }
131 131
132 132
133 TEST(StressJS) { 133 TEST(StressJS) {
134 Isolate* isolate = CcTest::i_isolate(); 134 Isolate* isolate = CcTest::i_isolate();
135 Factory* factory = isolate->factory(); 135 Factory* factory = isolate->factory();
136 v8::HandleScope scope(CcTest::isolate()); 136 v8::HandleScope scope(CcTest::isolate());
137 v8::Handle<v8::Context> env = v8::Context::New(CcTest::isolate()); 137 v8::Handle<v8::Context> env = v8::Context::New(CcTest::isolate());
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 if (index < blocks.length() - 1) { 229 if (index < blocks.length() - 1) {
230 blocks[index] = blocks.RemoveLast(); 230 blocks[index] = blocks.RemoveLast();
231 } else { 231 } else {
232 blocks.RemoveLast(); 232 blocks.RemoveLast();
233 } 233 }
234 } 234 }
235 } 235 }
236 236
237 code_range.TearDown(); 237 code_range.TearDown();
238 } 238 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698