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

Side by Side Diff: src/bootstrapper.cc

Issue 6685073: Remember and reuse derived map for external arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback 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
« no previous file with comments | « src/api.cc ('k') | src/factory.h » ('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 1918 matching lines...) Expand 10 before | Expand all | Expand 10 after
1929 ASSERT(!to->HasFastProperties()); 1929 ASSERT(!to->HasFastProperties());
1930 // Add to dictionary. 1930 // Add to dictionary.
1931 Handle<String> key = Handle<String>(descs->GetKey(i)); 1931 Handle<String> key = Handle<String>(descs->GetKey(i));
1932 Handle<Object> callbacks(descs->GetCallbacksObject(i)); 1932 Handle<Object> callbacks(descs->GetCallbacksObject(i));
1933 PropertyDetails d = 1933 PropertyDetails d =
1934 PropertyDetails(details.attributes(), CALLBACKS, details.index()); 1934 PropertyDetails(details.attributes(), CALLBACKS, details.index());
1935 SetNormalizedProperty(to, key, callbacks, d); 1935 SetNormalizedProperty(to, key, callbacks, d);
1936 break; 1936 break;
1937 } 1937 }
1938 case MAP_TRANSITION: 1938 case MAP_TRANSITION:
1939 case EXTERNAL_ARRAY_TRANSITION:
1939 case CONSTANT_TRANSITION: 1940 case CONSTANT_TRANSITION:
1940 case NULL_DESCRIPTOR: 1941 case NULL_DESCRIPTOR:
1941 // Ignore non-properties. 1942 // Ignore non-properties.
1942 break; 1943 break;
1943 case NORMAL: 1944 case NORMAL:
1944 // Do not occur since the from object has fast properties. 1945 // Do not occur since the from object has fast properties.
1945 case INTERCEPTOR: 1946 case INTERCEPTOR:
1946 // No element in instance descriptors have interceptor type. 1947 // No element in instance descriptors have interceptor type.
1947 UNREACHABLE(); 1948 UNREACHABLE();
1948 break; 1949 break;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
2092 return from + sizeof(NestingCounterType); 2093 return from + sizeof(NestingCounterType);
2093 } 2094 }
2094 2095
2095 2096
2096 // Called when the top-level V8 mutex is destroyed. 2097 // Called when the top-level V8 mutex is destroyed.
2097 void Bootstrapper::FreeThreadResources() { 2098 void Bootstrapper::FreeThreadResources() {
2098 ASSERT(!IsActive()); 2099 ASSERT(!IsActive());
2099 } 2100 }
2100 2101
2101 } } // namespace v8::internal 2102 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698