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

Side by Side Diff: src/factory.cc

Issue 23691002: Add OptimizedCodeEntry as a new heap object type. An optimized code entry represents an association… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
« no previous file with comments | « src/factory.h ('k') | src/heap.h » ('j') | src/heap.cc » ('J')
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 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 } 1242 }
1243 1243
1244 1244
1245 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) { 1245 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) {
1246 CALL_HEAP_FUNCTION(isolate(), 1246 CALL_HEAP_FUNCTION(isolate(),
1247 isolate()->heap()->AllocateSharedFunctionInfo(*name), 1247 isolate()->heap()->AllocateSharedFunctionInfo(*name),
1248 SharedFunctionInfo); 1248 SharedFunctionInfo);
1249 } 1249 }
1250 1250
1251 1251
1252 Handle<OptimizedCodeEntry> Factory::NewOptimizedCodeEntry(
1253 Handle<Context> native_context,
1254 Handle<JSFunction> function,
1255 Handle<Code> code,
1256 Handle<FixedArray> literals) {
1257 CALL_HEAP_FUNCTION(isolate(),
1258 isolate()->heap()->AllocateOptimizedCodeEntry(
1259 *native_context,
1260 *function,
1261 *code,
1262 *literals),
1263 OptimizedCodeEntry);
1264 }
1265
1266
1252 Handle<String> Factory::NumberToString(Handle<Object> number) { 1267 Handle<String> Factory::NumberToString(Handle<Object> number) {
1253 CALL_HEAP_FUNCTION(isolate(), 1268 CALL_HEAP_FUNCTION(isolate(),
1254 isolate()->heap()->NumberToString(*number), String); 1269 isolate()->heap()->NumberToString(*number), String);
1255 } 1270 }
1256 1271
1257 1272
1258 Handle<String> Factory::Uint32ToString(uint32_t value) { 1273 Handle<String> Factory::Uint32ToString(uint32_t value) {
1259 CALL_HEAP_FUNCTION(isolate(), 1274 CALL_HEAP_FUNCTION(isolate(),
1260 isolate()->heap()->Uint32ToString(value), String); 1275 isolate()->heap()->Uint32ToString(value), String);
1261 } 1276 }
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1610 return Handle<Object>::null(); 1625 return Handle<Object>::null();
1611 } 1626 }
1612 1627
1613 1628
1614 Handle<Object> Factory::ToBoolean(bool value) { 1629 Handle<Object> Factory::ToBoolean(bool value) {
1615 return value ? true_value() : false_value(); 1630 return value ? true_value() : false_value();
1616 } 1631 }
1617 1632
1618 1633
1619 } } // namespace v8::internal 1634 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/heap.h » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698