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

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

Issue 167523003: ARM: build fix for r19380. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: A64 port. Created 6 years, 10 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/a64/code-stubs-a64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 5509 matching lines...) Expand 10 before | Expand all | Expand 10 after
5520 Address thunk_address = FUNCTION_ADDR(&InvokeFunctionCallback); 5520 Address thunk_address = FUNCTION_ADDR(&InvokeFunctionCallback);
5521 ExternalReference::Type thunk_type = ExternalReference::PROFILING_API_CALL; 5521 ExternalReference::Type thunk_type = ExternalReference::PROFILING_API_CALL;
5522 ApiFunction thunk_fun(thunk_address); 5522 ApiFunction thunk_fun(thunk_address);
5523 ExternalReference thunk_ref = ExternalReference(&thunk_fun, thunk_type, 5523 ExternalReference thunk_ref = ExternalReference(&thunk_fun, thunk_type,
5524 masm->isolate()); 5524 masm->isolate());
5525 5525
5526 AllowExternalCallThatCantCauseGC scope(masm); 5526 AllowExternalCallThatCantCauseGC scope(masm);
5527 MemOperand context_restore_operand( 5527 MemOperand context_restore_operand(
5528 fp, (2 + FCA::kContextSaveIndex) * kPointerSize); 5528 fp, (2 + FCA::kContextSaveIndex) * kPointerSize);
5529 // Stores return the first js argument 5529 // Stores return the first js argument
5530 int return_value_offset = 5530 int return_value_offset = 0;
5531 2 + (is_store ? FCA::kArgsLength : FCA::kReturnValueOffset); 5531 if (is_store) {
5532 return_value_offset = 2 + FCA::kArgsLength;
5533 } else {
5534 return_value_offset = 2 + FCA::kReturnValueOffset;
5535 }
5532 MemOperand return_value_operand(fp, return_value_offset * kPointerSize); 5536 MemOperand return_value_operand(fp, return_value_offset * kPointerSize);
5533 5537
5534 __ CallApiFunctionAndReturn(api_function_address, 5538 __ CallApiFunctionAndReturn(api_function_address,
5535 thunk_ref, 5539 thunk_ref,
5536 kStackUnwindSpace, 5540 kStackUnwindSpace,
5537 return_value_operand, 5541 return_value_operand,
5538 &context_restore_operand); 5542 &context_restore_operand);
5539 } 5543 }
5540 5544
5541 5545
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
5575 MemOperand(fp, 6 * kPointerSize), 5579 MemOperand(fp, 6 * kPointerSize),
5576 NULL); 5580 NULL);
5577 } 5581 }
5578 5582
5579 5583
5580 #undef __ 5584 #undef __
5581 5585
5582 } } // namespace v8::internal 5586 } } // namespace v8::internal
5583 5587
5584 #endif // V8_TARGET_ARCH_ARM 5588 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/a64/code-stubs-a64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698