Chromium Code Reviews| OLD | NEW | 
|---|---|
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1678 Code* entry = Code::cast(builtins_[i]); | 1678 Code* entry = Code::cast(builtins_[i]); | 
| 1679 if (entry->contains(pc)) { | 1679 if (entry->contains(pc)) { | 
| 1680 return names_[i]; | 1680 return names_[i]; | 
| 1681 } | 1681 } | 
| 1682 } | 1682 } | 
| 1683 } | 1683 } | 
| 1684 return NULL; | 1684 return NULL; | 
| 1685 } | 1685 } | 
| 1686 | 1686 | 
| 1687 | 1687 | 
| 1688 Handle<Code> Builtins::builtin(Name name, Isolate* isolate) { | |
| 1689 return Handle<Code>(isolate->builtins()->builtin(name), isolate); | |
| 
 
Vitaly Repeshko
2011/03/22 14:46:20
I think we can reuse builtin address to avoid allo
 
 | |
| 1690 } | |
| 1691 | |
| 1692 | |
| 1688 } } // namespace v8::internal | 1693 } } // namespace v8::internal | 
| OLD | NEW |