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

Side by Side Diff: src/code-stubs-hydrogen.cc

Issue 12210083: Renamed "symbols" to "internalized strings" throughout the code base, (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Yang's comments Created 7 years, 10 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 | « src/code-stubs.cc ('k') | src/conversions-inl.h » ('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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 AddInstruction(new(zone) HStoreKeyed(new_elements, key, hole, to_kind)); 220 AddInstruction(new(zone) HStoreKeyed(new_elements, key, hole, to_kind));
221 AddSimulate(BailoutId::StubEntry(), REMOVABLE_SIMULATE); 221 AddSimulate(BailoutId::StubEntry(), REMOVABLE_SIMULATE);
222 222
223 builder.EndBody(); 223 builder.EndBody();
224 224
225 BuildCopyElements(context(), elements, 225 BuildCopyElements(context(), elements,
226 casted_stub()->from_kind(), new_elements, 226 casted_stub()->from_kind(), new_elements,
227 to_kind, array_length); 227 to_kind, array_length);
228 228
229 AddInstruction(new(zone) HStoreNamedField(js_array, 229 AddInstruction(new(zone) HStoreNamedField(js_array,
230 factory->elements_field_symbol(), 230 factory->elements_field_string(),
231 new_elements, true, 231 new_elements, true,
232 JSArray::kElementsOffset)); 232 JSArray::kElementsOffset));
233 AddSimulate(BailoutId::StubEntry()); 233 AddSimulate(BailoutId::StubEntry());
234 234
235 if_builder.End(); 235 if_builder.End();
236 236
237 AddInstruction(new(zone) HStoreNamedField(js_array, factory->length_symbol(), 237 AddInstruction(new(zone) HStoreNamedField(js_array, factory->length_string(),
238 map, true, JSArray::kMapOffset)); 238 map, true, JSArray::kMapOffset));
239 AddSimulate(BailoutId::StubEntry()); 239 AddSimulate(BailoutId::StubEntry());
240 240
241 HReturn* ret = new(zone) HReturn(js_array, context()); 241 HReturn* ret = new(zone) HReturn(js_array, context());
242 current_block()->Finish(ret); 242 current_block()->Finish(ret);
243 } 243 }
244 244
245 245
246 Handle<Code> TransitionElementsKindStub::GenerateCode() { 246 Handle<Code> TransitionElementsKindStub::GenerateCode() {
247 CodeStubGraphBuilder<TransitionElementsKindStub> builder(this); 247 CodeStubGraphBuilder<TransitionElementsKindStub> builder(this);
248 LChunk* chunk = OptimizeGraph(builder.CreateGraph()); 248 LChunk* chunk = OptimizeGraph(builder.CreateGraph());
249 return chunk->Codegen(Code::COMPILED_STUB); 249 return chunk->Codegen(Code::COMPILED_STUB);
250 } 250 }
251 251
252 252
253 } } // namespace v8::internal 253 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/conversions-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698