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

Side by Side Diff: src/arm/code-stubs-arm.cc

Issue 6717018: Introduce accessors on builtins instance (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 9 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 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 5379 matching lines...) Expand 10 before | Expand all | Expand 10 after
5390 __ InvokeFunction(r1, actual, JUMP_FUNCTION); 5390 __ InvokeFunction(r1, actual, JUMP_FUNCTION);
5391 5391
5392 // Slow-case: Non-function called. 5392 // Slow-case: Non-function called.
5393 __ bind(&slow); 5393 __ bind(&slow);
5394 // CALL_NON_FUNCTION expects the non-function callee as receiver (instead 5394 // CALL_NON_FUNCTION expects the non-function callee as receiver (instead
5395 // of the original receiver from the call site). 5395 // of the original receiver from the call site).
5396 __ str(r1, MemOperand(sp, argc_ * kPointerSize)); 5396 __ str(r1, MemOperand(sp, argc_ * kPointerSize));
5397 __ mov(r0, Operand(argc_)); // Setup the number of arguments. 5397 __ mov(r0, Operand(argc_)); // Setup the number of arguments.
5398 __ mov(r2, Operand(0, RelocInfo::NONE)); 5398 __ mov(r2, Operand(0, RelocInfo::NONE));
5399 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION); 5399 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION);
5400 __ Jump(Handle<Code>(Isolate::Current()->builtins()->builtin( 5400 __ Jump(Builtins::builtin(Builtins::ArgumentsAdaptorTrampoline,
5401 Builtins::ArgumentsAdaptorTrampoline)), 5401 masm->isolate()),
5402 RelocInfo::CODE_TARGET); 5402 RelocInfo::CODE_TARGET);
5403 } 5403 }
5404 5404
5405 5405
5406 // Unfortunately you have to run without snapshots to see most of these 5406 // Unfortunately you have to run without snapshots to see most of these
5407 // names in the profile since most compare stubs end up in the snapshot. 5407 // names in the profile since most compare stubs end up in the snapshot.
5408 const char* CompareStub::GetName() { 5408 const char* CompareStub::GetName() {
5409 ASSERT((lhs_.is(r0) && rhs_.is(r1)) || 5409 ASSERT((lhs_.is(r0) && rhs_.is(r1)) ||
5410 (lhs_.is(r1) && rhs_.is(r0))); 5410 (lhs_.is(r1) && rhs_.is(r0)));
5411 5411
(...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after
6858 __ str(pc, MemOperand(sp, 0)); 6858 __ str(pc, MemOperand(sp, 0));
6859 __ Jump(target); // Call the C++ function. 6859 __ Jump(target); // Call the C++ function.
6860 } 6860 }
6861 6861
6862 6862
6863 #undef __ 6863 #undef __
6864 6864
6865 } } // namespace v8::internal 6865 } } // namespace v8::internal
6866 6866
6867 #endif // V8_TARGET_ARCH_ARM 6867 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/builtins-arm.cc ('k') | src/arm/deoptimizer-arm.cc » ('j') | src/builtins.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698