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

Side by Side Diff: src/mips/deoptimizer-mips.cc

Issue 70163006: MIPS: Simplify behavior of code stubs that accept a variable number of stack arguments in addition … (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 7 years, 1 month 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/lithium-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 1
2 // Copyright 2011 the V8 project authors. All rights reserved. 2 // Copyright 2011 the V8 project authors. All rights reserved.
3 // Redistribution and use in source and binary forms, with or without 3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are 4 // modification, are permitted provided that the following conditions are
5 // met: 5 // met:
6 // 6 //
7 // * Redistributions of source code must retain the above copyright 7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer. 8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above 9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following 10 // copyright notice, this list of conditions and the following
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 input_->SetFrameSlot(i, Memory::uint32_at(tos + i)); 97 input_->SetFrameSlot(i, Memory::uint32_at(tos + i));
98 } 98 }
99 } 99 }
100 100
101 101
102 void Deoptimizer::SetPlatformCompiledStubRegisters( 102 void Deoptimizer::SetPlatformCompiledStubRegisters(
103 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) { 103 FrameDescription* output_frame, CodeStubInterfaceDescriptor* descriptor) {
104 ApiFunction function(descriptor->deoptimization_handler_); 104 ApiFunction function(descriptor->deoptimization_handler_);
105 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_); 105 ExternalReference xref(&function, ExternalReference::BUILTIN_CALL, isolate_);
106 intptr_t handler = reinterpret_cast<intptr_t>(xref.address()); 106 intptr_t handler = reinterpret_cast<intptr_t>(xref.address());
107 int params = descriptor->environment_length(); 107 int params = descriptor->GetHandlerParameterCount();
108 output_frame->SetRegister(s0.code(), params); 108 output_frame->SetRegister(s0.code(), params);
109 output_frame->SetRegister(s1.code(), (params - 1) * kPointerSize); 109 output_frame->SetRegister(s1.code(), (params - 1) * kPointerSize);
110 output_frame->SetRegister(s2.code(), handler); 110 output_frame->SetRegister(s2.code(), handler);
111 } 111 }
112 112
113 113
114 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { 114 void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) {
115 for (int i = 0; i < DoubleRegister::kMaxNumRegisters; ++i) { 115 for (int i = 0; i < DoubleRegister::kMaxNumRegisters; ++i) {
116 double double_value = input_->GetDoubleRegister(i); 116 double double_value = input_->GetDoubleRegister(i);
117 output_frame->SetDoubleRegister(i, double_value); 117 output_frame->SetDoubleRegister(i, double_value);
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 363
364 void FrameDescription::SetCallerFp(unsigned offset, intptr_t value) { 364 void FrameDescription::SetCallerFp(unsigned offset, intptr_t value) {
365 SetFrameSlot(offset, value); 365 SetFrameSlot(offset, value);
366 } 366 }
367 367
368 368
369 #undef __ 369 #undef __
370 370
371 371
372 } } // namespace v8::internal 372 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698