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

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

Issue 1270393002: [strong] Refactor out separate strong runtime call for class objects (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cl feedback Created 5 years, 4 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
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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 2547 matching lines...) Expand 10 before | Expand all | Expand 10 after
2558 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 4); 2558 __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 4);
2559 break; 2559 break;
2560 2560
2561 default: 2561 default:
2562 UNREACHABLE(); 2562 UNREACHABLE();
2563 } 2563 }
2564 } 2564 }
2565 2565
2566 // Set both the prototype and constructor to have fast properties, and also 2566 // Set both the prototype and constructor to have fast properties, and also
2567 // freeze them in strong mode. 2567 // freeze them in strong mode.
2568 __ CallRuntime(is_strong(language_mode()) 2568 __ CallRuntime(Runtime::kFinalizeClassDefinition, 2);
2569 ? Runtime::kFinalizeClassDefinitionStrong
2570 : Runtime::kFinalizeClassDefinition,
2571 2);
2572 } 2569 }
2573 2570
2574 2571
2575 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) { 2572 void FullCodeGenerator::EmitBinaryOp(BinaryOperation* expr, Token::Value op) {
2576 __ mov(a0, result_register()); 2573 __ mov(a0, result_register());
2577 __ pop(a1); 2574 __ pop(a1);
2578 Handle<Code> code = 2575 Handle<Code> code =
2579 CodeFactory::BinaryOpIC(isolate(), op, strength(language_mode())).code(); 2576 CodeFactory::BinaryOpIC(isolate(), op, strength(language_mode())).code();
2580 JumpPatchSite patch_site(masm_); // unbound, signals no inlined smi code. 2577 JumpPatchSite patch_site(masm_); // unbound, signals no inlined smi code.
2581 CallIC(code, expr->BinaryOperationFeedbackId()); 2578 CallIC(code, expr->BinaryOperationFeedbackId());
(...skipping 2849 matching lines...) Expand 10 before | Expand all | Expand 10 after
5431 reinterpret_cast<uint32_t>( 5428 reinterpret_cast<uint32_t>(
5432 isolate->builtins()->OsrAfterStackCheck()->entry())); 5429 isolate->builtins()->OsrAfterStackCheck()->entry()));
5433 return OSR_AFTER_STACK_CHECK; 5430 return OSR_AFTER_STACK_CHECK;
5434 } 5431 }
5435 5432
5436 5433
5437 } // namespace internal 5434 } // namespace internal
5438 } // namespace v8 5435 } // namespace v8
5439 5436
5440 #endif // V8_TARGET_ARCH_MIPS 5437 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/full-codegen/ia32/full-codegen-ia32.cc ('k') | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698