Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index a8323ffe5aa0f8087be9fbe6b81a8effef08532d..2bd2fd479d60481002768a732184c97ea0657215 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -567,7 +567,7 @@ void CompareIC::Clear(Isolate* isolate, Address address, Code* target, |
// Only clear CompareICs that can retain objects. |
if (stub.state() != CompareICState::KNOWN_OBJECT) return; |
SetTargetAtAddress(address, |
- GetRawUninitialized(isolate, stub.op(), stub.strong()), |
+ GetRawUninitialized(isolate, stub.op(), stub.strength()), |
constant_pool); |
PatchInlinedSmiCode(address, DISABLE_INLINED_SMI_CHECK); |
} |
@@ -2434,7 +2434,7 @@ MaybeHandle<Object> BinaryOpIC::Transition( |
// Compute the actual result using the builtin for the binary operation. |
Object* builtin = isolate()->js_builtins_object()->javascript_builtin( |
- TokenToJSBuiltin(state.op(), state.language_mode())); |
+ TokenToJSBuiltin(state.op(), state.strength())); |
Handle<JSFunction> function = handle(JSFunction::cast(builtin), isolate()); |
Handle<Object> result; |
ASSIGN_RETURN_ON_EXCEPTION( |
@@ -2535,8 +2535,8 @@ RUNTIME_FUNCTION(BinaryOpIC_MissWithAllocationSite) { |
Code* CompareIC::GetRawUninitialized(Isolate* isolate, Token::Value op, |
- bool strong) { |
- CompareICStub stub(isolate, op, strong, CompareICState::UNINITIALIZED, |
+ Strength strength) { |
+ CompareICStub stub(isolate, op, strength, CompareICState::UNINITIALIZED, |
CompareICState::UNINITIALIZED, |
CompareICState::UNINITIALIZED); |
Code* code = NULL; |
@@ -2546,8 +2546,8 @@ Code* CompareIC::GetRawUninitialized(Isolate* isolate, Token::Value op, |
Handle<Code> CompareIC::GetUninitialized(Isolate* isolate, Token::Value op, |
- bool strong) { |
- CompareICStub stub(isolate, op, strong, CompareICState::UNINITIALIZED, |
+ Strength strength) { |
+ CompareICStub stub(isolate, op, strength, CompareICState::UNINITIALIZED, |
CompareICState::UNINITIALIZED, |
CompareICState::UNINITIALIZED); |
return stub.GetCode(); |
@@ -2564,7 +2564,7 @@ Code* CompareIC::UpdateCaches(Handle<Object> x, Handle<Object> y) { |
CompareICState::State state = CompareICState::TargetState( |
old_stub.state(), old_stub.left(), old_stub.right(), op_, |
HasInlinedSmiCode(address()), x, y); |
- CompareICStub stub(isolate(), op_, old_stub.strong(), new_left, new_right, |
+ CompareICStub stub(isolate(), op_, old_stub.strength(), new_left, new_right, |
state); |
if (state == CompareICState::KNOWN_OBJECT) { |
stub.set_known_map( |
@@ -2675,8 +2675,8 @@ RUNTIME_FUNCTION(Unreachable) { |
Builtins::JavaScript BinaryOpIC::TokenToJSBuiltin(Token::Value op, |
- LanguageMode language_mode) { |
- if (is_strong(language_mode)) { |
+ Strength strength) { |
+ if (is_strong(strength)) { |
switch (op) { |
default: UNREACHABLE(); |
case Token::ADD: return Builtins::ADD_STRONG; |