| OLD | NEW |
| 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 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/api.h" | 8 #include "src/api.h" |
| 9 #include "src/arguments.h" | 9 #include "src/arguments.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1467 Handle<Map> transition(lookup->GetTransitionTarget()); | 1467 Handle<Map> transition(lookup->GetTransitionTarget()); |
| 1468 PropertyDetails details = lookup->GetPropertyDetails(); | 1468 PropertyDetails details = lookup->GetPropertyDetails(); |
| 1469 | 1469 |
| 1470 if (details.type() != CALLBACKS && details.attributes() == NONE && | 1470 if (details.type() != CALLBACKS && details.attributes() == NONE && |
| 1471 holder->HasFastProperties()) { | 1471 holder->HasFastProperties()) { |
| 1472 return compiler.CompileStoreTransition(transition, name); | 1472 return compiler.CompileStoreTransition(transition, name); |
| 1473 } | 1473 } |
| 1474 } else { | 1474 } else { |
| 1475 switch (lookup->type()) { | 1475 switch (lookup->type()) { |
| 1476 case FIELD: | 1476 case FIELD: |
| 1477 if (!lookup->representation().IsHeapObject()) { |
| 1478 StoreFieldStub stub(isolate(), lookup->GetFieldIndex(), |
| 1479 lookup->representation()); |
| 1480 return stub.GetCode(); |
| 1481 } |
| 1477 return compiler.CompileStoreField(lookup, name); | 1482 return compiler.CompileStoreField(lookup, name); |
| 1478 case NORMAL: | 1483 case NORMAL: |
| 1479 if (receiver->IsJSGlobalProxy() || receiver->IsGlobalObject()) { | 1484 if (receiver->IsJSGlobalProxy() || receiver->IsGlobalObject()) { |
| 1480 // The stub generated for the global object picks the value directly | 1485 // The stub generated for the global object picks the value directly |
| 1481 // from the property cell. So the property must be directly on the | 1486 // from the property cell. So the property must be directly on the |
| 1482 // global object. | 1487 // global object. |
| 1483 PrototypeIterator iter(isolate(), receiver); | 1488 PrototypeIterator iter(isolate(), receiver); |
| 1484 Handle<GlobalObject> global = | 1489 Handle<GlobalObject> global = |
| 1485 receiver->IsJSGlobalProxy() | 1490 receiver->IsJSGlobalProxy() |
| 1486 ? Handle<GlobalObject>::cast( | 1491 ? Handle<GlobalObject>::cast( |
| (...skipping 1605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3092 #undef ADDR | 3097 #undef ADDR |
| 3093 }; | 3098 }; |
| 3094 | 3099 |
| 3095 | 3100 |
| 3096 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 3101 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
| 3097 return IC_utilities[id]; | 3102 return IC_utilities[id]; |
| 3098 } | 3103 } |
| 3099 | 3104 |
| 3100 | 3105 |
| 3101 } } // namespace v8::internal | 3106 } } // namespace v8::internal |
| OLD | NEW |