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

Side by Side Diff: src/mips/full-codegen-mips.cc

Issue 69293010: MIPS: After r17654 unused EmitMathFloor breaks the build. (Closed) Base URL: ssh://192.168.4.100/data/kilvadyb/v8m-rb-sim@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 | « 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 3776 matching lines...) Expand 10 before | Expand all | Expand 10 after
3787 void FullCodeGenerator::EmitMathSqrt(CallRuntime* expr) { 3787 void FullCodeGenerator::EmitMathSqrt(CallRuntime* expr) {
3788 // Load the argument on the stack and call the runtime function. 3788 // Load the argument on the stack and call the runtime function.
3789 ZoneList<Expression*>* args = expr->arguments(); 3789 ZoneList<Expression*>* args = expr->arguments();
3790 ASSERT(args->length() == 1); 3790 ASSERT(args->length() == 1);
3791 VisitForStackValue(args->at(0)); 3791 VisitForStackValue(args->at(0));
3792 __ CallRuntime(Runtime::kMath_sqrt, 1); 3792 __ CallRuntime(Runtime::kMath_sqrt, 1);
3793 context()->Plug(v0); 3793 context()->Plug(v0);
3794 } 3794 }
3795 3795
3796 3796
3797 void FullCodeGenerator::EmitMathFloor(CallRuntime* expr) {
3798 // Load the argument on the stack and call the runtime function.
3799 ZoneList<Expression*>* args = expr->arguments();
3800 ASSERT(args->length() == 1);
3801 VisitForStackValue(args->at(0));
3802 __ CallRuntime(Runtime::kMath_floor, 1);
3803 context()->Plug(v0);
3804 }
3805
3806
3807 void FullCodeGenerator::EmitCallFunction(CallRuntime* expr) { 3797 void FullCodeGenerator::EmitCallFunction(CallRuntime* expr) {
3808 ZoneList<Expression*>* args = expr->arguments(); 3798 ZoneList<Expression*>* args = expr->arguments();
3809 ASSERT(args->length() >= 2); 3799 ASSERT(args->length() >= 2);
3810 3800
3811 int arg_count = args->length() - 2; // 2 ~ receiver and function. 3801 int arg_count = args->length() - 2; // 2 ~ receiver and function.
3812 for (int i = 0; i < arg_count + 1; i++) { 3802 for (int i = 0; i < arg_count + 1; i++) {
3813 VisitForStackValue(args->at(i)); 3803 VisitForStackValue(args->at(i));
3814 } 3804 }
3815 VisitForAccumulatorValue(args->last()); // Function. 3805 VisitForAccumulatorValue(args->last()); // Function.
3816 3806
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
4996 Assembler::target_address_at(pc_immediate_load_address)) == 4986 Assembler::target_address_at(pc_immediate_load_address)) ==
4997 reinterpret_cast<uint32_t>( 4987 reinterpret_cast<uint32_t>(
4998 isolate->builtins()->OsrAfterStackCheck()->entry())); 4988 isolate->builtins()->OsrAfterStackCheck()->entry()));
4999 return OSR_AFTER_STACK_CHECK; 4989 return OSR_AFTER_STACK_CHECK;
5000 } 4990 }
5001 4991
5002 4992
5003 } } // namespace v8::internal 4993 } } // namespace v8::internal
5004 4994
5005 #endif // V8_TARGET_ARCH_MIPS 4995 #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