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

Side by Side Diff: src/mips/macro-assembler-mips.h

Issue 2106113002: Revert of [builtins] New frame type for exits to C++ builtins (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/mips/assembler-mips.h" 10 #include "src/mips/assembler-mips.h"
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 Register scratch1, 1006 Register scratch1,
1007 Register scratch2, 1007 Register scratch2,
1008 FPURegister double_scratch0, 1008 FPURegister double_scratch0,
1009 FPURegister double_scratch1, 1009 FPURegister double_scratch1,
1010 Label* not_int32); 1010 Label* not_int32);
1011 1011
1012 // Enter exit frame. 1012 // Enter exit frame.
1013 // argc - argument count to be dropped by LeaveExitFrame. 1013 // argc - argument count to be dropped by LeaveExitFrame.
1014 // save_doubles - saves FPU registers on stack, currently disabled. 1014 // save_doubles - saves FPU registers on stack, currently disabled.
1015 // stack_space - extra stack space. 1015 // stack_space - extra stack space.
1016 void EnterExitFrame(bool save_doubles, int stack_space = 0, 1016 void EnterExitFrame(bool save_doubles,
1017 StackFrame::Type frame_type = StackFrame::EXIT); 1017 int stack_space = 0);
1018 1018
1019 // Leave the current exit frame. 1019 // Leave the current exit frame.
1020 void LeaveExitFrame(bool save_doubles, Register arg_count, 1020 void LeaveExitFrame(bool save_doubles, Register arg_count,
1021 bool restore_context, bool do_return = NO_EMIT_RETURN, 1021 bool restore_context, bool do_return = NO_EMIT_RETURN,
1022 bool argument_count_is_length = false); 1022 bool argument_count_is_length = false);
1023 1023
1024 // Get the actual activation frame alignment for target environment. 1024 // Get the actual activation frame alignment for target environment.
1025 static int ActivationFrameAlignment(); 1025 static int ActivationFrameAlignment();
1026 1026
1027 // Make sure the stack is aligned. Only emits code in debug mode. 1027 // Make sure the stack is aligned. Only emits code in debug mode.
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
1435 // There are two ways of passing double arguments on MIPS, depending on 1435 // There are two ways of passing double arguments on MIPS, depending on
1436 // whether soft or hard floating point ABI is used. These functions 1436 // whether soft or hard floating point ABI is used. These functions
1437 // abstract parameter passing for the three different ways we call 1437 // abstract parameter passing for the three different ways we call
1438 // C functions from generated code. 1438 // C functions from generated code.
1439 void MovToFloatParameter(DoubleRegister src); 1439 void MovToFloatParameter(DoubleRegister src);
1440 void MovToFloatParameters(DoubleRegister src1, DoubleRegister src2); 1440 void MovToFloatParameters(DoubleRegister src1, DoubleRegister src2);
1441 void MovToFloatResult(DoubleRegister src); 1441 void MovToFloatResult(DoubleRegister src);
1442 1442
1443 // Jump to the builtin routine. 1443 // Jump to the builtin routine.
1444 void JumpToExternalReference(const ExternalReference& builtin, 1444 void JumpToExternalReference(const ExternalReference& builtin,
1445 BranchDelaySlot bd = PROTECT, 1445 BranchDelaySlot bd = PROTECT);
1446 bool builtin_exit_frame = false);
1447 1446
1448 struct Unresolved { 1447 struct Unresolved {
1449 int pc; 1448 int pc;
1450 uint32_t flags; // See Bootstrapper::FixupFlags decoders/encoders. 1449 uint32_t flags; // See Bootstrapper::FixupFlags decoders/encoders.
1451 const char* name; 1450 const char* name;
1452 }; 1451 };
1453 1452
1454 Handle<Object> CodeObject() { 1453 Handle<Object> CodeObject() {
1455 DCHECK(!code_object_.is_null()); 1454 DCHECK(!code_object_.is_null());
1456 return code_object_; 1455 return code_object_;
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1901 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1900 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1902 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1901 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1903 #else 1902 #else
1904 #define ACCESS_MASM(masm) masm-> 1903 #define ACCESS_MASM(masm) masm->
1905 #endif 1904 #endif
1906 1905
1907 } // namespace internal 1906 } // namespace internal
1908 } // namespace v8 1907 } // namespace v8
1909 1908
1910 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1909 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698