OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1631 | 1631 |
1632 #ifdef DEBUG | 1632 #ifdef DEBUG |
1633 builtins->Verify(); | 1633 builtins->Verify(); |
1634 #endif | 1634 #endif |
1635 | 1635 |
1636 return true; | 1636 return true; |
1637 } | 1637 } |
1638 | 1638 |
1639 | 1639 |
1640 bool Genesis::InstallExperimentalNatives() { | 1640 bool Genesis::InstallExperimentalNatives() { |
1641 if (FLAG_harmony_proxies) { | 1641 for (int i = ExperimentalNatives::GetDebuggerCount(); |
1642 for (int i = ExperimentalNatives::GetDebuggerCount(); | 1642 i < ExperimentalNatives::GetBuiltinsCount(); |
1643 i < ExperimentalNatives::GetBuiltinsCount(); | 1643 i++) { |
1644 i++) { | 1644 if (FLAG_harmony_proxies && |
| 1645 strcmp(ExperimentalNatives::GetScriptName(i).start(), |
| 1646 "native proxy.js") == 0) { |
1645 if (!CompileExperimentalBuiltin(isolate(), i)) return false; | 1647 if (!CompileExperimentalBuiltin(isolate(), i)) return false; |
1646 } | 1648 } |
1647 } | 1649 } |
1648 return true; | 1650 return true; |
1649 } | 1651 } |
1650 | 1652 |
1651 | 1653 |
1652 static Handle<JSObject> ResolveBuiltinIdHolder( | 1654 static Handle<JSObject> ResolveBuiltinIdHolder( |
1653 Handle<Context> global_context, | 1655 Handle<Context> global_context, |
1654 const char* holder_expr) { | 1656 const char* holder_expr) { |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1997 break; | 1999 break; |
1998 } | 2000 } |
1999 case MAP_TRANSITION: | 2001 case MAP_TRANSITION: |
2000 case EXTERNAL_ARRAY_TRANSITION: | 2002 case EXTERNAL_ARRAY_TRANSITION: |
2001 case CONSTANT_TRANSITION: | 2003 case CONSTANT_TRANSITION: |
2002 case NULL_DESCRIPTOR: | 2004 case NULL_DESCRIPTOR: |
2003 // Ignore non-properties. | 2005 // Ignore non-properties. |
2004 break; | 2006 break; |
2005 case NORMAL: | 2007 case NORMAL: |
2006 // Do not occur since the from object has fast properties. | 2008 // Do not occur since the from object has fast properties. |
| 2009 case HANDLER: |
2007 case INTERCEPTOR: | 2010 case INTERCEPTOR: |
2008 // No element in instance descriptors have interceptor type. | 2011 // No element in instance descriptors have proxy or interceptor type. |
2009 UNREACHABLE(); | 2012 UNREACHABLE(); |
2010 break; | 2013 break; |
2011 } | 2014 } |
2012 } | 2015 } |
2013 } else { | 2016 } else { |
2014 Handle<StringDictionary> properties = | 2017 Handle<StringDictionary> properties = |
2015 Handle<StringDictionary>(from->property_dictionary()); | 2018 Handle<StringDictionary>(from->property_dictionary()); |
2016 int capacity = properties->Capacity(); | 2019 int capacity = properties->Capacity(); |
2017 for (int i = 0; i < capacity; i++) { | 2020 for (int i = 0; i < capacity; i++) { |
2018 Object* raw_key(properties->KeyAt(i)); | 2021 Object* raw_key(properties->KeyAt(i)); |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2158 return from + sizeof(NestingCounterType); | 2161 return from + sizeof(NestingCounterType); |
2159 } | 2162 } |
2160 | 2163 |
2161 | 2164 |
2162 // Called when the top-level V8 mutex is destroyed. | 2165 // Called when the top-level V8 mutex is destroyed. |
2163 void Bootstrapper::FreeThreadResources() { | 2166 void Bootstrapper::FreeThreadResources() { |
2164 ASSERT(!IsActive()); | 2167 ASSERT(!IsActive()); |
2165 } | 2168 } |
2166 | 2169 |
2167 } } // namespace v8::internal | 2170 } } // namespace v8::internal |
OLD | NEW |