| OLD | NEW | 
|---|
| 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 3722 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3733     switch (property->kind()) { | 3733     switch (property->kind()) { | 
| 3734       case ObjectLiteral::Property::MATERIALIZED_LITERAL: | 3734       case ObjectLiteral::Property::MATERIALIZED_LITERAL: | 
| 3735         ASSERT(!CompileTimeValue::IsCompileTimeValue(value)); | 3735         ASSERT(!CompileTimeValue::IsCompileTimeValue(value)); | 
| 3736         // Fall through. | 3736         // Fall through. | 
| 3737       case ObjectLiteral::Property::COMPUTED: | 3737       case ObjectLiteral::Property::COMPUTED: | 
| 3738         if (key->handle()->IsSymbol()) { | 3738         if (key->handle()->IsSymbol()) { | 
| 3739           if (property->emit_store()) { | 3739           if (property->emit_store()) { | 
| 3740             property->RecordTypeFeedback(oracle()); | 3740             property->RecordTypeFeedback(oracle()); | 
| 3741             CHECK_ALIVE(VisitForValue(value)); | 3741             CHECK_ALIVE(VisitForValue(value)); | 
| 3742             HValue* value = Pop(); | 3742             HValue* value = Pop(); | 
| 3743             Handle<String> name = Handle<String>::cast(key->handle()); |  | 
| 3744             HInstruction* store = BuildStoreNamed(literal, value, property); | 3743             HInstruction* store = BuildStoreNamed(literal, value, property); | 
| 3745             AddInstruction(store); | 3744             AddInstruction(store); | 
| 3746             if (store->HasObservableSideEffects()) AddSimulate(key->id()); | 3745             if (store->HasObservableSideEffects()) AddSimulate(key->id()); | 
| 3747           } else { | 3746           } else { | 
| 3748             CHECK_ALIVE(VisitForEffect(value)); | 3747             CHECK_ALIVE(VisitForEffect(value)); | 
| 3749           } | 3748           } | 
| 3750           break; | 3749           break; | 
| 3751         } | 3750         } | 
| 3752         // Fall through. | 3751         // Fall through. | 
| 3753       case ObjectLiteral::Property::PROTOTYPE: | 3752       case ObjectLiteral::Property::PROTOTYPE: | 
| (...skipping 4360 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 8114     } | 8113     } | 
| 8115   } | 8114   } | 
| 8116 | 8115 | 
| 8117 #ifdef DEBUG | 8116 #ifdef DEBUG | 
| 8118   if (graph_ != NULL) graph_->Verify(false);  // No full verify. | 8117   if (graph_ != NULL) graph_->Verify(false);  // No full verify. | 
| 8119   if (allocator_ != NULL) allocator_->Verify(); | 8118   if (allocator_ != NULL) allocator_->Verify(); | 
| 8120 #endif | 8119 #endif | 
| 8121 } | 8120 } | 
| 8122 | 8121 | 
| 8123 } }  // namespace v8::internal | 8122 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|