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

Side by Side Diff: src/property.cc

Issue 7035007: Implement get trap for proxies. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback. Created 9 years, 7 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
« no previous file with comments | « src/property.h ('k') | src/runtime.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 case FIELD: 67 case FIELD:
68 PrintF(out, " -type = field\n"); 68 PrintF(out, " -type = field\n");
69 PrintF(out, " -index = %d", GetFieldIndex()); 69 PrintF(out, " -index = %d", GetFieldIndex());
70 PrintF(out, "\n"); 70 PrintF(out, "\n");
71 break; 71 break;
72 case CALLBACKS: 72 case CALLBACKS:
73 PrintF(out, " -type = call backs\n"); 73 PrintF(out, " -type = call backs\n");
74 PrintF(out, " -callback object:\n"); 74 PrintF(out, " -callback object:\n");
75 GetCallbackObject()->Print(out); 75 GetCallbackObject()->Print(out);
76 break; 76 break;
77 case HANDLER:
78 PrintF(out, " -type = lookup proxy\n");
79 break;
77 case INTERCEPTOR: 80 case INTERCEPTOR:
78 PrintF(out, " -type = lookup interceptor\n"); 81 PrintF(out, " -type = lookup interceptor\n");
79 break; 82 break;
80 case CONSTANT_TRANSITION: 83 case CONSTANT_TRANSITION:
81 PrintF(out, " -type = constant property transition\n"); 84 PrintF(out, " -type = constant property transition\n");
82 break; 85 break;
83 case NULL_DESCRIPTOR: 86 case NULL_DESCRIPTOR:
84 PrintF(out, " =type = null descriptor\n"); 87 PrintF(out, " =type = null descriptor\n");
85 break; 88 break;
86 } 89 }
87 } 90 }
88 91
89 92
90 void Descriptor::Print(FILE* out) { 93 void Descriptor::Print(FILE* out) {
91 PrintF(out, "Descriptor "); 94 PrintF(out, "Descriptor ");
92 GetKey()->ShortPrint(out); 95 GetKey()->ShortPrint(out);
93 PrintF(out, " @ "); 96 PrintF(out, " @ ");
94 GetValue()->ShortPrint(out); 97 GetValue()->ShortPrint(out);
95 PrintF(out, " %d\n", GetDetails().index()); 98 PrintF(out, " %d\n", GetDetails().index());
96 } 99 }
97 100
98 101
99 #endif 102 #endif
100 103
101 104
102 } } // namespace v8::internal 105 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/property.h ('k') | src/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698