| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 6908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6919 } | 6919 } |
| 6920 | 6920 |
| 6921 | 6921 |
| 6922 void CodeGenerator::EmitNamedStore(Handle<String> name, bool is_contextual) { | 6922 void CodeGenerator::EmitNamedStore(Handle<String> name, bool is_contextual) { |
| 6923 #ifdef DEBUG | 6923 #ifdef DEBUG |
| 6924 int expected_height = frame()->height() - (is_contextual ? 1 : 2); | 6924 int expected_height = frame()->height() - (is_contextual ? 1 : 2); |
| 6925 #endif | 6925 #endif |
| 6926 | 6926 |
| 6927 Result result; | 6927 Result result; |
| 6928 if (is_contextual || scope()->is_global_scope() || loop_nesting() == 0) { | 6928 if (is_contextual || scope()->is_global_scope() || loop_nesting() == 0) { |
| 6929 frame()->CallStoreIC(name, is_contextual); | 6929 frame()->CallStoreIC(name, is_contextual, strict_mode_flag()); |
| 6930 } else { | 6930 } else { |
| 6931 // Inline the in-object property case. | 6931 // Inline the in-object property case. |
| 6932 JumpTarget slow, done; | 6932 JumpTarget slow, done; |
| 6933 | 6933 |
| 6934 // Get the value and receiver from the stack. | 6934 // Get the value and receiver from the stack. |
| 6935 frame()->PopToR0(); | 6935 frame()->PopToR0(); |
| 6936 Register value = r0; | 6936 Register value = r0; |
| 6937 frame()->PopToR1(); | 6937 frame()->PopToR1(); |
| 6938 Register receiver = r1; | 6938 Register receiver = r1; |
| 6939 | 6939 |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7370 BinaryOpIC::GetName(runtime_operands_type_)); | 7370 BinaryOpIC::GetName(runtime_operands_type_)); |
| 7371 return name_; | 7371 return name_; |
| 7372 } | 7372 } |
| 7373 | 7373 |
| 7374 | 7374 |
| 7375 #undef __ | 7375 #undef __ |
| 7376 | 7376 |
| 7377 } } // namespace v8::internal | 7377 } } // namespace v8::internal |
| 7378 | 7378 |
| 7379 #endif // V8_TARGET_ARCH_ARM | 7379 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |