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

Side by Side Diff: src/handles.cc

Issue 59973004: Revert "Handlify concat string and substring." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/handles.h ('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 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 223
224 Handle<Object> GetProperty(Isolate* isolate, 224 Handle<Object> GetProperty(Isolate* isolate,
225 Handle<Object> obj, 225 Handle<Object> obj,
226 Handle<Object> key) { 226 Handle<Object> key) {
227 CALL_HEAP_FUNCTION(isolate, 227 CALL_HEAP_FUNCTION(isolate,
228 Runtime::GetObjectProperty(isolate, obj, key), Object); 228 Runtime::GetObjectProperty(isolate, obj, key), Object);
229 } 229 }
230 230
231 231
232 Handle<String> LookupSingleCharacterStringFromCode(Isolate* isolate, 232 Handle<Object> LookupSingleCharacterStringFromCode(Isolate* isolate,
233 uint32_t index) { 233 uint32_t index) {
234 CALL_HEAP_FUNCTION( 234 CALL_HEAP_FUNCTION(
235 isolate, 235 isolate,
236 isolate->heap()->LookupSingleCharacterStringFromCode(index), 236 isolate->heap()->LookupSingleCharacterStringFromCode(index), Object);
237 String);
238 } 237 }
239 238
240 239
241 // Wrappers for scripts are kept alive and cached in weak global 240 // Wrappers for scripts are kept alive and cached in weak global
242 // handles referred from foreign objects held by the scripts as long as 241 // handles referred from foreign objects held by the scripts as long as
243 // they are used. When they are not used anymore, the garbage 242 // they are used. When they are not used anymore, the garbage
244 // collector will call the weak callback on the global handle 243 // collector will call the weak callback on the global handle
245 // associated with the wrapper and get rid of both the wrapper and the 244 // associated with the wrapper and get rid of both the wrapper and the
246 // handle. 245 // handle.
247 static void ClearWrapperCache(v8::Isolate* v8_isolate, 246 static void ClearWrapperCache(v8::Isolate* v8_isolate,
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 Handle<Code> code) { 813 Handle<Code> code) {
815 heap->EnsureWeakObjectToCodeTable(); 814 heap->EnsureWeakObjectToCodeTable();
816 Handle<DependentCode> dep(heap->LookupWeakObjectToCodeDependency(*object)); 815 Handle<DependentCode> dep(heap->LookupWeakObjectToCodeDependency(*object));
817 dep = DependentCode::Insert(dep, DependentCode::kWeaklyEmbeddedGroup, code); 816 dep = DependentCode::Insert(dep, DependentCode::kWeaklyEmbeddedGroup, code);
818 CALL_HEAP_FUNCTION_VOID(heap->isolate(), 817 CALL_HEAP_FUNCTION_VOID(heap->isolate(),
819 heap->AddWeakObjectToCodeDependency(*object, *dep)); 818 heap->AddWeakObjectToCodeDependency(*object, *dep));
820 } 819 }
821 820
822 821
823 } } // namespace v8::internal 822 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.h ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698