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

Side by Side Diff: src/arm/full-codegen-arm.cc

Issue 7623011: Implement function proxies (except for their use as constructors). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed second round of comments. Created 9 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/arm/code-stubs-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2552 matching lines...) Expand 10 before | Expand all | Expand 10 after
2563 VisitForAccumulatorValue(args->at(0)); 2563 VisitForAccumulatorValue(args->at(0));
2564 2564
2565 Label materialize_true, materialize_false; 2565 Label materialize_true, materialize_false;
2566 Label* if_true = NULL; 2566 Label* if_true = NULL;
2567 Label* if_false = NULL; 2567 Label* if_false = NULL;
2568 Label* fall_through = NULL; 2568 Label* fall_through = NULL;
2569 context()->PrepareTest(&materialize_true, &materialize_false, 2569 context()->PrepareTest(&materialize_true, &materialize_false,
2570 &if_true, &if_false, &fall_through); 2570 &if_true, &if_false, &fall_through);
2571 2571
2572 __ JumpIfSmi(r0, if_false); 2572 __ JumpIfSmi(r0, if_false);
2573 __ CompareObjectType(r0, r1, r1, JS_FUNCTION_TYPE); 2573 __ CompareObjectType(r0, r1, r2, JS_FUNCTION_TYPE);
2574 PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false); 2574 PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false);
2575 Split(eq, if_true, if_false, fall_through); 2575 Split(eq, if_true, if_false, fall_through);
2576 2576
2577 context()->Plug(if_true, if_false); 2577 context()->Plug(if_true, if_false);
2578 } 2578 }
2579 2579
2580 2580
2581 void FullCodeGenerator::EmitIsArray(ZoneList<Expression*>* args) { 2581 void FullCodeGenerator::EmitIsArray(ZoneList<Expression*>* args) {
2582 ASSERT(args->length() == 1); 2582 ASSERT(args->length() == 1);
2583 2583
(...skipping 1714 matching lines...) Expand 10 before | Expand all | Expand 10 after
4298 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 4298 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
4299 __ add(pc, r1, Operand(masm_->CodeObject())); 4299 __ add(pc, r1, Operand(masm_->CodeObject()));
4300 } 4300 }
4301 4301
4302 4302
4303 #undef __ 4303 #undef __
4304 4304
4305 } } // namespace v8::internal 4305 } } // namespace v8::internal
4306 4306
4307 #endif // V8_TARGET_ARCH_ARM 4307 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698