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

Side by Side Diff: src/ic-arm.cc

Issue 4035: Refactored the code for entering and leaving exit frames (calls... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 // Call the entry. 420 // Call the entry.
421 __ mov(r0, Operand(2)); 421 __ mov(r0, Operand(2));
422 __ mov(r1, Operand(f)); 422 __ mov(r1, Operand(f));
423 423
424 CEntryStub stub; 424 CEntryStub stub;
425 __ CallStub(&stub); 425 __ CallStub(&stub);
426 426
427 // Move result to r1. 427 // Move result to r1.
428 __ mov(r1, Operand(r0)); 428 __ mov(r1, Operand(r0));
429 429
430 __ ExitInternalFrame(); 430 __ LeaveInternalFrame();
431 431
432 // Patch the function on the stack; 1 ~ receiver. 432 // Patch the function on the stack; 1 ~ receiver.
433 __ str(r1, MemOperand(sp, (argc + 1) * kPointerSize)); 433 __ str(r1, MemOperand(sp, (argc + 1) * kPointerSize));
434 434
435 // Invoke the function. 435 // Invoke the function.
436 ParameterCount actual(argc); 436 ParameterCount actual(argc);
437 __ InvokeFunction(r1, actual, JUMP_FUNCTION); 437 __ InvokeFunction(r1, actual, JUMP_FUNCTION);
438 } 438 }
439 439
440 440
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 573
574 // Perform tail call to the entry. 574 // Perform tail call to the entry.
575 __ TailCallRuntime(f, 3); 575 __ TailCallRuntime(f, 3);
576 } 576 }
577 577
578 578
579 #undef __ 579 #undef __
580 580
581 581
582 } } // namespace v8::internal 582 } } // namespace v8::internal
OLDNEW
« src/codegen-ia32.cc ('K') | « src/frames-ia32.h ('k') | src/ic-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698