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

Side by Side Diff: src/handles.cc

Issue 9181: Push string shape fixes to trunk (version 0.4.3.1). (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 12 years, 1 month 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/factory.cc ('k') | src/heap.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 CALL_HEAP_FUNCTION(obj->DeleteProperty(*prop), Object); 210 CALL_HEAP_FUNCTION(obj->DeleteProperty(*prop), Object);
211 } 211 }
212 212
213 213
214 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index) { 214 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index) {
215 CALL_HEAP_FUNCTION(Heap::LookupSingleCharacterStringFromCode(index), Object); 215 CALL_HEAP_FUNCTION(Heap::LookupSingleCharacterStringFromCode(index), Object);
216 } 216 }
217 217
218 218
219 Handle<String> SubString(Handle<String> str, int start, int end) { 219 Handle<String> SubString(Handle<String> str, int start, int end) {
220 CALL_HEAP_FUNCTION(str->Slice(StringShape(*str), start, end), String); 220 CALL_HEAP_FUNCTION(str->Slice(start, end), String);
221 } 221 }
222 222
223 223
224 Handle<Object> SetElement(Handle<JSObject> object, 224 Handle<Object> SetElement(Handle<JSObject> object,
225 uint32_t index, 225 uint32_t index,
226 Handle<Object> value) { 226 Handle<Object> value) {
227 CALL_HEAP_FUNCTION(object->SetElement(index, *value), Object); 227 CALL_HEAP_FUNCTION(object->SetElement(index, *value), Object);
228 } 228 }
229 229
230 230
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 Handle<Context> compile_context, 527 Handle<Context> compile_context,
528 Handle<Context> function_context) { 528 Handle<Context> function_context) {
529 Handle<FixedArray> arr = Factory::NewFixedArray(3); 529 Handle<FixedArray> arr = Factory::NewFixedArray(3);
530 arr->set(0, Smi::FromInt(index)); 530 arr->set(0, Smi::FromInt(index));
531 arr->set(1, *compile_context); // Compile in this context 531 arr->set(1, *compile_context); // Compile in this context
532 arr->set(2, *function_context); // Set function context to this 532 arr->set(2, *function_context); // Set function context to this
533 fun->shared()->set_lazy_load_data(*arr); 533 fun->shared()->set_lazy_load_data(*arr);
534 } 534 }
535 535
536 } } // namespace v8::internal 536 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698