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

Side by Side Diff: src/factory.cc

Issue 162983003: Internalize string keys in Keyed{Store,Load}IC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/factory.h ('k') | src/ic.cc » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 } 1293 }
1294 1294
1295 1295
1296 Handle<Code> Factory::CopyCode(Handle<Code> code, Vector<byte> reloc_info) { 1296 Handle<Code> Factory::CopyCode(Handle<Code> code, Vector<byte> reloc_info) {
1297 CALL_HEAP_FUNCTION(isolate(), 1297 CALL_HEAP_FUNCTION(isolate(),
1298 isolate()->heap()->CopyCode(*code, reloc_info), 1298 isolate()->heap()->CopyCode(*code, reloc_info),
1299 Code); 1299 Code);
1300 } 1300 }
1301 1301
1302 1302
1303 Handle<String> Factory::InternalizedStringFromString(Handle<String> value) {
1304 CALL_HEAP_FUNCTION(isolate(),
1305 isolate()->heap()->InternalizeString(*value), String);
1306 }
1307
1308
1309 Handle<JSObject> Factory::NewJSObject(Handle<JSFunction> constructor, 1303 Handle<JSObject> Factory::NewJSObject(Handle<JSFunction> constructor,
1310 PretenureFlag pretenure) { 1304 PretenureFlag pretenure) {
1311 JSFunction::EnsureHasInitialMap(constructor); 1305 JSFunction::EnsureHasInitialMap(constructor);
1312 CALL_HEAP_FUNCTION( 1306 CALL_HEAP_FUNCTION(
1313 isolate(), 1307 isolate(),
1314 isolate()->heap()->AllocateJSObject(*constructor, pretenure), JSObject); 1308 isolate()->heap()->AllocateJSObject(*constructor, pretenure), JSObject);
1315 } 1309 }
1316 1310
1317 1311
1318 Handle<JSModule> Factory::NewJSModule(Handle<Context> context, 1312 Handle<JSModule> Factory::NewJSModule(Handle<Context> context,
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
1994 return Handle<Object>::null(); 1988 return Handle<Object>::null();
1995 } 1989 }
1996 1990
1997 1991
1998 Handle<Object> Factory::ToBoolean(bool value) { 1992 Handle<Object> Factory::ToBoolean(bool value) {
1999 return value ? true_value() : false_value(); 1993 return value ? true_value() : false_value();
2000 } 1994 }
2001 1995
2002 1996
2003 } } // namespace v8::internal 1997 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698