Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/builtins.cc

Issue 6717018: Introduce accessors on builtins instance (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« src/builtins.h ('K') | « src/builtins.h ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698