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

Side by Side Diff: src/factory.cc

Issue 23480031: Enable preaging of code objects when --optimize-for-size. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Fix a couple of typos Created 7 years, 2 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
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 968 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 Handle<JSObject> Factory::NewExternal(void* value) { 979 Handle<JSObject> Factory::NewExternal(void* value) {
980 CALL_HEAP_FUNCTION(isolate(), 980 CALL_HEAP_FUNCTION(isolate(),
981 isolate()->heap()->AllocateExternal(value), 981 isolate()->heap()->AllocateExternal(value),
982 JSObject); 982 JSObject);
983 } 983 }
984 984
985 985
986 Handle<Code> Factory::NewCode(const CodeDesc& desc, 986 Handle<Code> Factory::NewCode(const CodeDesc& desc,
987 Code::Flags flags, 987 Code::Flags flags,
988 Handle<Object> self_ref, 988 Handle<Object> self_ref,
989 int prologue_offset,
989 bool immovable, 990 bool immovable,
990 bool crankshafted) { 991 bool crankshafted) {
991 CALL_HEAP_FUNCTION(isolate(), 992 CALL_HEAP_FUNCTION(isolate(),
992 isolate()->heap()->CreateCode( 993 isolate()->heap()->CreateCode(
993 desc, flags, self_ref, immovable, crankshafted), 994 desc, flags, self_ref, prologue_offset, immovable,
995 crankshafted),
994 Code); 996 Code);
995 } 997 }
996 998
997 999
998 Handle<Code> Factory::CopyCode(Handle<Code> code) { 1000 Handle<Code> Factory::CopyCode(Handle<Code> code) {
999 CALL_HEAP_FUNCTION(isolate(), 1001 CALL_HEAP_FUNCTION(isolate(),
1000 isolate()->heap()->CopyCode(*code), 1002 isolate()->heap()->CopyCode(*code),
1001 Code); 1003 Code);
1002 } 1004 }
1003 1005
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
1646 return Handle<Object>::null(); 1648 return Handle<Object>::null();
1647 } 1649 }
1648 1650
1649 1651
1650 Handle<Object> Factory::ToBoolean(bool value) { 1652 Handle<Object> Factory::ToBoolean(bool value) {
1651 return value ? true_value() : false_value(); 1653 return value ? true_value() : false_value();
1652 } 1654 }
1653 1655
1654 1656
1655 } } // namespace v8::internal 1657 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/full-codegen.cc » ('j') | src/ia32/macro-assembler-ia32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698