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

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: Add missing ia32 lithium codegen. 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 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 Handle<JSObject> Factory::NewExternal(void* value) { 964 Handle<JSObject> Factory::NewExternal(void* value) {
965 CALL_HEAP_FUNCTION(isolate(), 965 CALL_HEAP_FUNCTION(isolate(),
966 isolate()->heap()->AllocateExternal(value), 966 isolate()->heap()->AllocateExternal(value),
967 JSObject); 967 JSObject);
968 } 968 }
969 969
970 970
971 Handle<Code> Factory::NewCode(const CodeDesc& desc, 971 Handle<Code> Factory::NewCode(const CodeDesc& desc,
972 Code::Flags flags, 972 Code::Flags flags,
973 Handle<Object> self_ref, 973 Handle<Object> self_ref,
974 int prologue_offset,
974 bool immovable, 975 bool immovable,
975 bool crankshafted) { 976 bool crankshafted) {
976 CALL_HEAP_FUNCTION(isolate(), 977 CALL_HEAP_FUNCTION(isolate(),
977 isolate()->heap()->CreateCode( 978 isolate()->heap()->CreateCode(
978 desc, flags, self_ref, immovable, crankshafted), 979 desc, flags, self_ref, prologue_offset, immovable,
980 crankshafted),
979 Code); 981 Code);
980 } 982 }
981 983
982 984
983 Handle<Code> Factory::CopyCode(Handle<Code> code) { 985 Handle<Code> Factory::CopyCode(Handle<Code> code) {
984 CALL_HEAP_FUNCTION(isolate(), 986 CALL_HEAP_FUNCTION(isolate(),
985 isolate()->heap()->CopyCode(*code), 987 isolate()->heap()->CopyCode(*code),
986 Code); 988 Code);
987 } 989 }
988 990
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
1631 return Handle<Object>::null(); 1633 return Handle<Object>::null();
1632 } 1634 }
1633 1635
1634 1636
1635 Handle<Object> Factory::ToBoolean(bool value) { 1637 Handle<Object> Factory::ToBoolean(bool value) {
1636 return value ? true_value() : false_value(); 1638 return value ? true_value() : false_value();
1637 } 1639 }
1638 1640
1639 1641
1640 } } // namespace v8::internal 1642 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/full-codegen.cc » ('j') | src/ia32/full-codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698