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

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

Issue 163953014: MIPS: build fix for r19380 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « no previous file | 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 5690 matching lines...) Expand 10 before | Expand all | Expand 10 after
5701 Address thunk_address = FUNCTION_ADDR(&InvokeFunctionCallback); 5701 Address thunk_address = FUNCTION_ADDR(&InvokeFunctionCallback);
5702 ExternalReference::Type thunk_type = ExternalReference::PROFILING_API_CALL; 5702 ExternalReference::Type thunk_type = ExternalReference::PROFILING_API_CALL;
5703 ApiFunction thunk_fun(thunk_address); 5703 ApiFunction thunk_fun(thunk_address);
5704 ExternalReference thunk_ref = ExternalReference(&thunk_fun, thunk_type, 5704 ExternalReference thunk_ref = ExternalReference(&thunk_fun, thunk_type,
5705 masm->isolate()); 5705 masm->isolate());
5706 5706
5707 AllowExternalCallThatCantCauseGC scope(masm); 5707 AllowExternalCallThatCantCauseGC scope(masm);
5708 MemOperand context_restore_operand( 5708 MemOperand context_restore_operand(
5709 fp, (2 + FCA::kContextSaveIndex) * kPointerSize); 5709 fp, (2 + FCA::kContextSaveIndex) * kPointerSize);
5710 // Stores return the first js argument. 5710 // Stores return the first js argument.
5711 int return_value_offset = 5711 int return_value_offset = 0;
5712 2 + (is_store ? FCA::kArgsLength : FCA::kReturnValueOffset); 5712 if (is_store) {
5713 return_value_offset = 2 + FCA::kArgsLength;
5714 } else {
5715 return_value_offset = 2 + FCA::kReturnValueOffset;
5716 }
5713 MemOperand return_value_operand(fp, return_value_offset * kPointerSize); 5717 MemOperand return_value_operand(fp, return_value_offset * kPointerSize);
5714 5718
5715 __ CallApiFunctionAndReturn(api_function_address, 5719 __ CallApiFunctionAndReturn(api_function_address,
5716 thunk_ref, 5720 thunk_ref,
5717 kStackUnwindSpace, 5721 kStackUnwindSpace,
5718 return_value_operand, 5722 return_value_operand,
5719 &context_restore_operand); 5723 &context_restore_operand);
5720 } 5724 }
5721 5725
5722 5726
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
5756 MemOperand(fp, 6 * kPointerSize), 5760 MemOperand(fp, 6 * kPointerSize),
5757 NULL); 5761 NULL);
5758 } 5762 }
5759 5763
5760 5764
5761 #undef __ 5765 #undef __
5762 5766
5763 } } // namespace v8::internal 5767 } } // namespace v8::internal
5764 5768
5765 #endif // V8_TARGET_ARCH_MIPS 5769 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698