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

Unified Diff: src/lithium.cc

Issue 24792002: Thumb2 Backend: Enable Crankshaft to compile all Optimized Functions in Thumb2 mode 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/messages.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lithium.cc
diff --git a/src/lithium.cc b/src/lithium.cc
index 790a2182b176ac5d86e701e01395297d90c6e5ca..5b3a30332c6d88d609206e0ba3c78927399964c4 100644
--- a/src/lithium.cc
+++ b/src/lithium.cc
@@ -450,13 +450,23 @@ Handle<Code> LChunk::Codegen() {
LOG_CODE_EVENT(info()->isolate(),
CodeStartLinePosInfoRecordEvent(
assembler.positions_recorder()));
+
+ Code::Flags flags = info()->flags();
+ Code::Kind kind = Code::ExtractKindFromFlags(flags);
+
+ if (FLAG_enable_thumb2_crankshaft && kind == Code::OPTIMIZED_FUNCTION) {
+ assembler.set_thumb_mode();
+ }
LCodeGen generator(this, &assembler, info());
MarkEmptyBlocks();
if (generator.GenerateCode()) {
CodeGenerator::MakeCodePrologue(info(), "optimized");
- Code::Flags flags = info()->flags();
+ if (FLAG_enable_thumb2_crankshaft && kind == Code::OPTIMIZED_FUNCTION) {
+ flags = Code::ComputeFlags(kind, UNINITIALIZED, Code::kNoExtraICState,
+ Code::NORMAL, -1, OWN_MAP, true);
+ }
Handle<Code> code =
CodeGenerator::MakeCodeEpilogue(&assembler, flags, info());
generator.FinishCode(code);
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698